using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using Newtonsoft.Json; namespace POSV.Printer { [Serializable] [JsonObject(MemberSerialization.OptIn)] public class PrintContent { /// /// 行打印格式 /// [JsonProperty(PropertyName = "format")] public RowFormat Format { get; set; } /// /// 打印行内容 /// [JsonProperty(PropertyName = "content")] public StringBuilder Content { get; set; } /// /// 打印的图片路径 /// [JsonProperty(PropertyName = "bitmapFile")] public string BitmapFile { get; set; } = null; /// /// 对齐方式 /// [JsonProperty(PropertyName = "alignStyle")] public AlignStyle AlignStyle { get; set; } /// /// 字体大小 /// [JsonProperty(PropertyName = "fontStyle")] public FontStyle FontStyle { get; set; } } }