//using MPKey = MessagePack.KeyAttribute; //using MPObj = MessagePack.MessagePackObjectAttribute; //using N_JsonProperty = Newtonsoft.Json.JsonPropertyAttribute; //using S_JsonProperty = System.Text.Json.Serialization.JsonPropertyNameAttribute; //namespace System.Application.UI.ViewModels.RichText //{ // [MPObj] // [Serializable] // public class SpanViewModel : Serializable // { // /// // /// 文本内容 // /// // [MPKey(0)] // [N_JsonProperty("q")] // [S_JsonProperty("q")] // public string? Text { get; set; } // /// // /// 字体样式 // /// // [MPKey(1)] // [N_JsonProperty("w")] // [S_JsonProperty("w")] // public FontStyle FontStyle { get; set; } // /// // /// 字体大小 // /// // [MPKey(2)] // [N_JsonProperty("e")] // [S_JsonProperty("e")] // public float? FontSize { get; set; } // /// // /// 底部外边距 // /// // [MPKey(3)] // [N_JsonProperty("r")] // [S_JsonProperty("r")] // public float? BottomMargin { get; set; } // /// // /// 是否换行 // /// // [MPKey(4)] // [N_JsonProperty("t")] // [S_JsonProperty("t")] // public bool NewLine { get; set; } // /// // /// 文本对齐方式 // /// // [MPKey(5)] // [N_JsonProperty("y")] // [S_JsonProperty("y")] // public Alignment TextAlignment { get; set; } // /// // /// 字体颜色 // /// // [MPKey(6)] // [N_JsonProperty("u")] // [S_JsonProperty("u")] // public string? FontColor { get; set; } // } //}