摘要:
String.Format("{0,-10}",str);//这个表示第一个参数str字符串的宽度为10,左对齐String.Format("{0,10}",str);//这个表示第一个参数str字符串的宽度为10,右对齐参考:From MSDNFormat Item SyntaxEach format item takes the following form and consists of the following components:{index[,alignment][:formatString]}The matching braces (& 阅读全文