123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace TEAMModelOS.Test.PPTX.PresentationElement
- {
- public class HtexContainer : HtexPosition
- {
- public HtexContainer() {
- Texts = new List<HtexText>();
- Paths = new List<HtexPath>();
- }
- /// <summary>
- /// p:sp
- /// </summary>
- public string Type { get; set; }
- //文字排版 横版 竖版
- public string TextLayout { get; set; }
- //文字位置
- public string TextAlign { get; set; } = "left";
- //容器填充颜色
- public string FillColor { get; set; }
- //图形是否闭合
- public bool Close { get; set; } = false;
- public List<HtexText> Texts { get; set; }
- public List<HtexPath> Paths { get; set; }
- }
- public abstract class HtexPath
- {
- public string Type { get; set; }
- }
- //public abstract class HtexClosePath :HtexPath
- //{
- // public bool Close { get; set; } = false;
- //}
- /// <summary>
- /// 起点 <a:moveTo>
- /// </summary>
- public class HtexMoveToPath : HtexPath
- {
- public HtexMoveToPath()
- {
- Pts = new List<Point> { };
- }
- public List<Point> Pts { get; set; }
- }
- /// <summary>
- /// 弧形 <a:arcTo>
- /// </summary>
- public class HtexArcToPath : HtexPath
- {
- public string WidthRadius { get; set; }
- public string HeightRadius { get; set; }
- public string StartAngle { get; set; }
- public string SwingAngle { get; set; }
- }
- /// <summary>
- /// 画线 <a:lnTo>
- /// </summary>
- public class HtexLineToPath : HtexPath
- {
- public HtexLineToPath()
- {
- Pts = new List<Point> { };
- }
- public List<Point> Pts { get; set; }
- }
- /// <summary>
- /// 三次贝塞尔曲线<a:cubicBezTo>
- /// </summary>
- public class HtexCubicBezPath : HtexPath
- {
- public HtexCubicBezPath()
- {
- Pts = new List<Point> { };
- }
- public List<Point> Pts { get; set; }
- }/// <summary>
- /// 二次贝塞尔曲线 <a:quadBezTo>
- /// </summary>
- public class HtexQuadBezPath : HtexPath
- {
- public HtexQuadBezPath()
- {
- Pts = new List<Point> { };
- }
- public List<Point> Pts { get; set; }
- }
- public class Point{
- public int X { get; set; }
- public int Y { get; set; }
- }
- }
|