Files
lserp_cs_6.0/插件库/Lskj.PubArgoxPrint/PrintModel.cs
T
2026-07-02 10:11:39 +00:00

23 lines
745 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lskj.PubArgoxPrint
{
public class PrintModel
{
public int X;
public int Y;
public int PrintType;//打印类型,0文本,1条码
public int FontSize;//文本则为字体大小,条码则为高度
public PrintModel(string[] args)
{
X = args.Length > 0 && int.TryParse(args[0], out X) ? X : 0;
Y = args.Length > 1 && int.TryParse(args[1], out Y) ? Y : 0;
PrintType = args.Length > 2 && int.TryParse(args[2], out PrintType) ? PrintType : 0;
FontSize = args.Length > 3 && int.TryParse(args[3], out FontSize) ? FontSize : 0;
}
}
}