标签:
谷歌百度MSDN里各种搜索"格式化""format",找不到...
Each format item takes the following form and consists of the following components:
{index[,alignment][:formatString]}
The matching braces ("{" and "}") are required.
可以用哪些格式字符,继续往下翻;
==========================================================
{index[,alignment][:formatString]}
{0,-10:D}
alignment表示对齐,负数左对齐,整数右对齐;数字大小表示字符宽度,小于字符串的长度时无效;
formatString,参见帮助里的各种格式,数字的,时间日期的,其他各种的..
Illustrated C# 2012_C#图解教程.pdf里有详细的讲解;
05.格式化字符串的用法_在help里怎么找到
标签:
原文地址:http://www.cnblogs.com/QIAOXINGXING001/p/5114251.html