using HTEXLib.Models.HTEX; using System; using System.Collections.Generic; using System.Text; namespace HTEXLib { public class Paragraph { public Paragraph() { texts = new List(); } /// /// /// public ParagraphStyle style { get; set; } = new ParagraphStyle(); /// /// 是否有动画 /// public bool animatable { get; set; } public BuChar buChar { get; set; } public List texts { get; set; } /// /// 进入场景之前是否可见元素 /// 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; } /// /// ltr 默认。文本方向从左到右 /// rtl 文本方向从右到左。 /// inherit 规定应该从父元素继承 direction 属性的值。 /// public string direction { get; set; } = "inherit"; } public class ParagraphStyle { public string vert { get; set; } // public string LeftMargin { get; set; } public string hori { get; set; } /// /// /// 摘要: /// 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 /// public string writing { get; set; } public Position position { get; set; } = new Position(); public double newTop { get; set; } } }