Indent() public method

Idents the text.
public Indent ( byte columns ) : void
columns byte /// Number of columns. ///
return void
Ejemplo n.º 1
0
        static void CashRegister(ThermalPrinter printer, string item, int price)
        {
            printer.Reset();
            printer.Indent(0);

            if (item.Length > 24) {
                item = item.Substring(0,23)+".";
            }

            printer.WriteToBuffer(item.ToUpper());
            printer.Indent(25);
            string sPrice = String.Format("{0:0.00}",(double)price/100);

            sPrice = sPrice.PadLeft(7);

            printer.WriteLine(sPrice);
            printer.Reset();
        }