示例#1
0
        public TextColumnsComposer(List <string[]> columnsData)
        {
            _defaultColumnSpecs = new TextColumnSpecs();
            _defaultRowSpecs    = new TextRowSpecs();

            Reset(columnsData);
        }
示例#2
0
        public TextColumnsComposer(int columnsCount)
        {
            _defaultColumnSpecs = new TextColumnSpecs();
            _defaultRowSpecs    = new TextRowSpecs();

            Reset(columnsCount);
        }
示例#3
0
        public TextColumnsComposer SetRowAlignment(TextRowAlignment alignment, int rowIndex)
        {
            if (rowIndex < 0)
            {
                throw new IndexOutOfRangeException();
            }

            TextRowSpecs rowSpecs;

            if (_rowSpecsDictionary.TryGetValue(rowIndex, out rowSpecs) == false)
            {
                rowSpecs = new TextRowSpecs();
                _rowSpecsDictionary.Add(rowIndex, rowSpecs);
            }

            rowSpecs.Alignment = alignment;

            return(this);
        }