Question

I'd like to be able to align the tabstops I use in a StringFormat (set with the SetTabStops() method)

Is this possible?

Was it helpful?

Solution

See (Update: Didn't help much as per comments below)


Or, as I commented further and recommend by yourself :)

In String.Format I don't think so as all it specializes in is replacing {n} parts with different formatters. One thing you may be able to do is to split the string by '\t', and apply .PadLeft() or .PadRight() to each and then string.Join() them, or use any of the suggestions above, but, string.Format is likely dead end for this one.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top