b45222ec 41a1 b1aa 4092 edc68defefdd - akesseler/Plexdata.Utilities.Templates GitHub Wiki

TokenLiterals.LiningToken Field

The lining separator character.

Namespace: Plexdata.Utilities.Formatting.Defines
Assembly: Plexdata.Utilities.Templates (in Plexdata.Utilities.Templates.dll) Version: 1.0.0

Syntax

C#

public const char LiningToken = ','

Field Value

Type: Char

Remarks

This constant serves as start tag of the value alignment and separates it from the rest of the format statement.

Examples

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.

See Also

Reference

TokenLiterals Class
Plexdata.Utilities.Formatting.Defines Namespace
TokenLiterals.FormatToken

⚠️ **GitHub.com Fallback** ⚠️