dd007c67 dd6e 1eea d03e e1ca689ff7c3 - akesseler/Plexdata.Utilities.Templates GitHub Wiki

TokenLiterals.FormatToken Field

The format 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 FormatToken = ':'

Field Value

Type: Char

Remarks

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

Examples

Here an example of how the format token is used.

C#

Template.Format("{0:N2}", 42);
Template.Format("{SomeName:N2}", 42);
Template.Format("{0,10:N2}", 42);
Template.Format("{SomeName,10:N2}", 42);

Please keep in mind, the optional value format must always be put at the end of the whole formatting statement.

See Also

Reference

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

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