sealed class
|
Format_N
|
extends
|
Format
|
Creates a new instance of Format_N.
public
constructor
|
Format_N
(string pattern)
|
||
params
|
pattern
|
The pattern. |
Replaces the next placeholder with the given value.
public
method
|
Bool
(bool value)
|
||
type
|
Format_N
|
||
params
|
value
|
The replacement value. | |
returns
|
|
The resulting string. |
Replaces the next placeholder with the characters that are appended to the returned string builder.
public
method
|
Builder
()
|
||
type
|
StringBuilder
|
||
returns
|
|
The StringBuilder object. |
Replaces the next placeholder with the given value.
public
method
|
Char
(char value,
int32 repeat = 1)
|
||
type
|
Format_N
|
||
params
|
value
|
The replacement value. | |
repeat
|
Number of times to repeat value. | ||
returns
|
|
this. |
Replaces the next placeholder with the given value.
public
method
|
Int
(int64 value,
FormatFlags flags = FormatFlags.Default)
|
||
type
|
Format_N
|
||
params
|
value
|
The replacement value. | |
flags
|
The number format flags to use. | ||
returns
|
|
this. |
Replaces the next placeholder with the given value.
public
method
|
Num
(float64 value,
FormatFlags flags = FormatFlags.Default)
|
||
type
|
Format_N
|
||
params
|
value
|
The replacement value. | |
flags
|
The number format flags to use. | ||
returns
|
|
this. |
Replaces the next placeholder with the given value.
public
method
|
Obj
(object value)
|
||
type
|
Format_N
|
||
params
|
value
|
The replacement value. | |
returns
|
|
this. |
Replaces the next placeholder with padding characters so that the formatted string has the given length.
public
method
|
Pad
(int32 length,
char c = '' '')
|
||
type
|
Format_N
|
||
params
|
length
|
The target formatted string length. | |
c
|
The
padding
character
to
use.
Defaults
to
whitespace:
'
' . |
||
returns
|
|
this |
Replaces the next placeholder with the given value.
public
method
|
Str
(StringBuilder value)
|
||
type
|
Format_N
|
||
params
|
value
|
The replacement value. | |
returns
|
|
this. |
Replaces the next placeholder with the given value.
public
method
|
Str
(string value,
StringEscape escape = null)
|
||
type
|
Format_N
|
||
params
|
value
|
The replacement value. | |
escape
|
Optional
escaping
rules
to
apply
to
value.
Defaults
to
null .
|
||
returns
|
|
this. |
public
override
method
|
ToString
()
|
||
type
|
string
|