public void Reset() { printerSocket.Send(CommandFactory.CreateResetCommand()); }
public void Print(string text) { printerSocket.Send(CommandFactory.CreatePrintCommand(text)); }
/// <summary> /// Cuts the paper. /// </summary> /// <param name="feedCount">Feed count. CutPosition = CutPositon + (n*verticalmotionunits)</param> public void CutPaper(byte feedCount = 50) { printerSocket.Send(CommandFactory.CreateCutPaperCommand(feedCount)); }
public void FeedLines(byte lines) { printerSocket.Send(CommandFactory.CreateFeedLinesCommand(lines)); }
public void PrintLine(string text = "") { printerSocket.Send(CommandFactory.CreatePrintLineCommand(text)); }
public void RemoveBold() { printerSocket.Send(CommandFactory.CreateBoldCommand(false)); }
public void SetBold() { printerSocket.Send(CommandFactory.CreateBoldCommand()); }
public void RemoveUnderline() { printerSocket.Send(CommandFactory.CreateUnderlineCommand(0)); }
public void SetUnderline(bool thick = false) { printerSocket.Send(CommandFactory.CreateUnderlineCommand((byte)(thick ? 2 : 1))); }
public void SetAlignment(PrintAlignment printAlignment) { printerSocket.Send(CommandFactory.CreateSetAlignmentCommand(printAlignment)); }