You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
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
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 行打印格式
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "format")]
|
|
|
|
|
public RowFormat Format { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 打印行内容
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "content")]
|
|
|
|
|
public StringBuilder Content { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 打印的图片路径
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "bitmapFile")]
|
|
|
|
|
public string BitmapFile { get; set; } = null;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 对齐方式
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "alignStyle")]
|
|
|
|
|
public AlignStyle AlignStyle { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 字体大小
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "fontStyle")]
|
|
|
|
|
public FontStyle FontStyle { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|