📜  StringFormat C# - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:17.893000             🧑  作者: Mango

代码示例1
String.Format("{0,-12}" +    // first argument, left align, 12 character wide column
              "{1,8:yyyy}" + // second argument, right align, 8 character wide column,
                             // formatted as a year
              "{2,12:N0}" +  // third argument, right align, 12 character wide column,
                             // formatted as a number, 0 decimal places