Пример #1
0
        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);
        }
Пример #2
0
        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);
        }