문제

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

Is this possible?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top