예제 #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);
        }