b45222ec 41a1 b1aa 4092 edc68defefdd - akesseler/Plexdata.Utilities.Templates GitHub Wiki
The lining separator character.
Namespace: Plexdata.Utilities.Formatting.Defines
Assembly: Plexdata.Utilities.Templates (in Plexdata.Utilities.Templates.dll) Version: 1.0.0
C#
public const char LiningToken = ','
Type: Char
This constant serves as start tag of the value alignment and separates it from the rest of the format statement.
Here an example of how the lining token is used.
C#
Template.Format("{0,10}", 42);
Template.Format("{SomeName,10}", 42);
Template.Format("{0,10:N2}", 42);
Template.Format("{SomeName,10:N2}", 42);
Please keep in mind, the optional value alignment must always be put in front of the optional value formatting.
TokenLiterals Class
Plexdata.Utilities.Formatting.Defines Namespace
TokenLiterals.FormatToken