Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用以下内容附加 WhiteSpaces:
sb.AppendFormat("{0,15}", "TEST");
但这是正确的。
如何使这个左对齐?
你可以使用:
sb.AppendFormat("{0,-15}", "TEST");
请参阅:StringBuilder.AppendFormat