public void AddLine(string line, TextSize size = TextSize.Normal, TextAlignment align = TextAlignment.Left, TextWeight weight = TextWeight.Normal) { ReceiptLine l = new ReceiptLine(); l.Text = (line ?? string.Empty); l.Size = size; l.Weight = weight; l.Alignment = align; l.TextRight = null; _lines.Add(l); }
public void AddLineValuePair(string name, string value, TextSize size = TextSize.Large, TextWeight weight = TextWeight.Normal) { ReceiptLine l = new ReceiptLine(); l.Text = (name ?? string.Empty); l.TextRight = (value ?? string.Empty); l.Size = size; l.Weight = weight; l.Alignment = TextAlignment.Center; _lines.Add(l); }