123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- using HTEXLib.Models.HTEX;
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace HTEXLib
- {
- public class Paragraph
- {
-
- public Paragraph() {
- texts = new List<Text>();
- }
- /// <summary>
- ///
- /// </summary>
- public ParagraphStyle style { get; set; } = new ParagraphStyle();
- /// <summary>
- /// 是否有动画
- /// </summary>
- public bool animatable { get; set; }
- public BuChar buChar { get; set; }
- public List<Text> texts { get; set; }
- /// <summary>
- /// 进入场景之前是否可见元素
- /// </summary>
- public bool invisible { get; set; }
- }
- public class Text //:Item
- {
- // public string StyleSha { get; set; }
- public string content { get; set; }
- public string link { get; set; }
- public string linkType { get; set; }
- public bool isbr { get; set; } = false;
-
- public FontStyle style { get; set; }
- }
- public class BuChar {
- //TYPE_BULPIC TYPE_NUMERIC TYPE_BULLET TYPE_NONE 没有图标的 只有缩进
- public string type{ get; set; }
- public double left { get; set; }
- // public double riht { get; set; }
- public string buchar { get; set; }
- public string color { get; set; }
- public string typeface { get; set; }
- public double size { get; set; }
- public string @float { get; set; }
- /// <summary>
- /// ltr 默认。文本方向从左到右
- /// rtl 文本方向从右到左。
- /// inherit 规定应该从父元素继承 direction 属性的值。
- /// </summary>
- public string direction { get; set; } = "inherit";
- }
- public class ParagraphStyle
- {
- public string vert { get; set; }
- // public string LeftMargin { get; set; }
- public string hori { get; set; }
- /// <summary>
- ///
- /// 摘要:
- /// Vertical Text Type Enum ( Horizontal ).
- /// When the item is serialized out as xml, its value is "horz".
- ///Horizontal = 0,
- ///
- /// 摘要:
- /// Vertical Text Type Enum ( Vertical ).
- /// When the item is serialized out as xml, its value is "vert".
- /// Vertical = 1,
- ///
- /// 摘要:
- /// Vertical Text Type Enum ( Vertical 270 ).
- /// When the item is serialized out as xml, its value is "vert270".
- /// Vertical270 = 2,
- ///
- /// 摘要:
- /// Vertical Text Type Enum ( WordArt Vertical ).
- /// When the item is serialized out as xml, its value is "wordArtVert".
- /// WordArtVertical = 3,
- ///
- /// 摘要:
- /// Vertical Text Type Enum ( East Asian Vertical ).
- /// When the item is serialized out as xml, its value is "eaVert".
- ///EastAsianVetical = 4,
- ///
- /// 摘要:
- /// Vertical Text Type Enum ( Mongolian Vertical ).
- /// When the item is serialized out as xml, its value is "mongolianVert".
- /// MongolianVertical = 5,
- ///
- /// 摘要:
- /// Vertical WordArt Right to Left.
- /// When the item is serialized out as xml, its value is "wordArtVertRtl".
- /// WordArtLeftToRight = 6
- /// </summary>
- public string writing { get; set; }
- public Position position { get; set; } = new Position();
- public double newTop { get; set; }
- }
- }
|