Strings
The only formatting available to Strings is the padding option, which can be positive or negative depending on whether the string should be left- or right-aligned:
String.Format("'{0,10}'", "John");
-> ' John'
String.Format("'{0,-10}'", "John");
-> 'John '
文章標籤
全站熱搜
留言列表