khalidabuhakmeh / ConsoleTables

Print out a nicely formatted table in a console application C#
MIT License
944 stars 157 forks source link

Doco: Can you nominate formatting for particular columns(properties)? #70

Open callagga opened 6 months ago

callagga commented 6 months ago

Doco: Can you nominate formatting for particular columns(properties)? Can I get a coding example please?

For example in a column/property was say an "balance" (e.g. decimal) and I wanted to apply the formatting such as "this.Balance.ToString("c", CultureInfo.GetCultureInfo("en-AU"));".

ericnewton76 commented 1 month ago

its all strings, so just add the string value to the row yourself.