Format_N

Description

sealed class Tinman.Core.Formatting.Format_N

Derived from

Format

A format pattern with an unspecified number of value arguments.

Call object.ToString to finish formatting.

Public / Constructors

Format_​N


public constructor Format_N → (1)

pattern in : string

The pattern.

Creates a new instance of Format_N.

Public / Methods

Bool


public method Bool → (1)

value in : bool

The replacement value.

returns → Format_N

The resulting string.

Replaces the next placeholder with the given value.

Builder


public method Builder → ()

returns → StringBuilder

The StringBuilder object.

Replaces the next placeholder with the characters that are appended to the returned string builder.

Char


public method Char → (2)

value in : char

The replacement value.

repeat opt : int32 = 1

Number of times to repeat value in.

returns → Format_N

this.

Replaces the next placeholder with the given value.

Int


public method Int → (2)

value in : int64

The replacement value.

flags opt : FormatFlags = FormatFlags.Default

The number format flags to use.

returns → Format_N

this.

Replaces the next placeholder with the given value.

Num


public method Num → (2)

value in : float64

The replacement value.

flags opt : FormatFlags = FormatFlags.Default

The number format flags to use.

returns → Format_N

this.

Replaces the next placeholder with the given value.

Obj


public method Obj → (1)

value in : object

The replacement value.

returns → Format_N

this.

Replaces the next placeholder with the given value.

Pad


public method Pad → (2)

length in : int32

The target formatted string length.

opt : char = ' '

The padding character to use.

returns → Format_N

this

Replaces the next placeholder with padding characters so that the formatted string has the given length.

Str

2 overloads


public method Str1 → (2)

value in : string

The replacement value.

escape opt : StringEscape = null

Optional escaping rules to apply to value in.

returns → Format_N

this.

Replaces the next placeholder with the given value.


public method Str2 → (1)

value in : StringBuilder

The replacement value.

returns → Format_N

this.

Replaces the next placeholder with the given value.