You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System/String.xml
+19-19Lines changed: 19 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -5301,14 +5301,14 @@ Invalid sequences are represented in the enumeration by <xref:System.Text.Rune.R
5301
5301
5302
5302
In this section:
5303
5303
5304
-
[Get started with the String.Format method](#Starting)
5305
-
[Which method do I call?](#FTaskList)
5306
-
[The Format method in brief](#Format_Brief)
5307
-
[The Format item](#FormatItem)
5308
-
[How arguments are formatted](#HowFormatted)
5309
-
[Format items that have the same index](#SameIndex)
5310
-
[Formatting and culture](#Format_Culture)
5311
-
[Custom formatting operations](#Format_Custom)
5304
+
[Get started with the String.Format method](#Starting)\
5305
+
[Which method do I call?](#FTaskList)\
5306
+
[The Format method in brief](#Format_Brief)\
5307
+
[The Format item](#FormatItem)\
5308
+
[How arguments are formatted](#HowFormatted)\
5309
+
[Format items that have the same index](#SameIndex)\
5310
+
[Formatting and culture](#Format_Culture)\
5311
+
[Custom formatting operations](#Format_Custom)\
5312
5312
[String.Format Q & A](#QA)
5313
5313
5314
5314
<a name="Starting"></a>
@@ -5410,15 +5410,15 @@ Invalid sequences are represented in the enumeration by <xref:System.Text.Rune.R
5410
5410
5411
5411
A format item has the following elements:
5412
5412
5413
-
*index*
5413
+
*index*\
5414
5414
The zero-based index of the argument whose string representation is to be included at this position in the string. If this argument is `null`, an empty string will be included at this position in the string.
5415
5415
5416
-
*alignment*
5416
+
*alignment*\
5417
5417
Optional. A signed integer that indicates the total length of the field into which the argument is inserted and whether it is right-aligned (a positive integer) or left-aligned (a negative integer). If you omit *alignment*, the string representation of the corresponding argument is inserted in a field with no leading or trailing spaces.
5418
5418
5419
5419
If the value of *alignment* is less than the length of the argument to be inserted, *alignment* is ignored and the length of the string representation of the argument is used as the field width.
5420
5420
5421
-
*formatString*
5421
+
*formatString*\
5422
5422
Optional. A string that specifies the format of the corresponding argument's result string. If you omit *formatString*, the corresponding argument's parameterless `ToString` method is called to produce its string representation. If you specify *formatString*, the argument referenced by the format item must implement the <xref:System.IFormattable> interface. Types that support format strings include:
5423
5423
5424
5424
- All integral and floating-point types. (See [Standard Numeric Format Strings](/dotnet/standard/base-types/standard-numeric-format-strings) and [Custom Numeric Format Strings](/dotnet/standard/base-types/custom-numeric-format-strings).)
@@ -5610,17 +5610,17 @@ The following are some of the examples included in the article:
5610
5610
5611
5611
### Create a format string
5612
5612
5613
-
[Inserting a string](#insert-a-string)
5614
-
[The format item](#the-format-item)
5613
+
[Inserting a string](#insert-a-string)\
5614
+
[The format item](#the-format-item)\
5615
5615
[Format items that have the same index](#format-items-that-have-the-same-index)
5616
5616
5617
5617
### Control formatted output
5618
5618
5619
-
[Controlling formatting](#control-formatting)
5620
-
[Controlling spacing](#control-spacing)
5621
-
[Controlling alignment](#control-alignment)
5622
-
[Controlling the number of integral digits](#how-do-i-control-the-number-of-integral-digits)
5623
-
[Controlling the number of digits after the decimal separator](#how-do-i-control-the-number-of-digits-after-the-decimal-separator)
5619
+
[Controlling formatting](#control-formatting)\
5620
+
[Controlling spacing](#control-spacing)\
5621
+
[Controlling alignment](#control-alignment)\
5622
+
[Controlling the number of integral digits](#how-do-i-control-the-number-of-integral-digits)\
5623
+
[Controlling the number of digits after the decimal separator](#how-do-i-control-the-number-of-digits-after-the-decimal-separator)\
5624
5624
[Including literal braces in a result string](#braces)
5625
5625
5626
5626
### Make format strings culture-sensitive
@@ -5629,7 +5629,7 @@ The following are some of the examples included in the article:
0 commit comments