23 lines
700 B
C#
23 lines
700 B
C#
namespace Inspectron.Epson.PrintServer.Printers.Utils;
|
|
|
|
public class PrintCommand
|
|
{
|
|
public string Text { get; set; }
|
|
public bool IsBig { get; set; }
|
|
public bool IsTall { get; set; }
|
|
public bool IsBold { get; set; }
|
|
public bool IsRed { get; set; }
|
|
public int? SetLineSpacing { get; set; }=null;
|
|
public bool IsCut { get; set; }
|
|
public PrintCommand(string text, bool isBig = false, bool isBold = false)
|
|
{
|
|
Text = text;
|
|
IsBig = isBig;
|
|
IsBold = isBold;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"Text: {Text}, IsBig: {IsBig}, IsBold: {IsBold}, IsRed: {IsRed}, SetLineSpacing: {SetLineSpacing}, IsCut: {IsCut}";
|
|
}
|
|
} |