douglasg14b / BetterConsoleTables

Faster, colorable, more configurable, and more robust console colors & tables for C# console applications
GNU Lesser General Public License v3.0
92 stars 16 forks source link

[Enhancement] Make formatting for Table.From() path easier #29

Open douglasg14b opened 2 years ago

douglasg14b commented 2 years ago

This issue highlighted that this path may be awkward: #28

            var table = new Table(TableConfig.Unicode());
            table.From(statistics.ToArray());

            // Enable inner formatting for all columns.
            foreach (var header in table.Headers)
                header.RowsFormat.InnerFormatting = true;

            Console.Write(table.ToString());   

Perhaps the From() method could accept some parameters that apply to all columns?