Struct FormattableStringHelper.FormatItem
A format item ({index[,alignment][:format]}) of a composite format string.
public readonly struct FormattableStringHelper.FormatItem
- Inherited Members
- Extension Methods
Constructors
FormatItem(int, int, int, int, int, bool)
Creates a format item.
public FormatItem(int start, int length, int index, int indexStart, int indexLength, bool hasAlignment)
Parameters
Properties
HasAlignment
true when the item has an alignment component ({0,5}).
public bool HasAlignment { get; }
Property Value
Index
Argument index.
public int Index { get; }
Property Value
IndexLength
Number of digits of the argument index.
public int IndexLength { get; }
Property Value
IndexStart
Position of the first digit of the argument index.
public int IndexStart { get; }
Property Value
Length
Length of the item, both braces included.
public int Length { get; }
Property Value
Start
Position of the opening brace.
public int Start { get; }