class
|
LabelFormat
|
Returns the number of placeholders.
public
property
|
Count
{
get
}
|
||
type
|
int32
|
||
value
|
|
The number of placeholders. |
The label that is being formatted.
public
property
|
Label
{
get
}
|
||
type
|
Label
|
||
value
|
|
The label. |
Replaces the next placeholder with the given value.
public
method
|
Bool
(int32 idx,
bool value)
|
||
type
|
LabelFormat
|
||
params
|
idx
|
[0..Count-1]
|
The placeholder index. |
value
|
The replacement value. | ||
returns
|
|
this. |
Replaces a placeholder with the given value.
public
method
|
Char
(int32 idx,
char value,
int32 repeat = 1)
|
||
type
|
LabelFormat
|
||
params
|
idx
|
[0..Count-1]
|
The placeholder index. |
value
|
The replacement value. | ||
repeat
|
Number of times to repeat value. | ||
returns
|
|
this. |
Uses the given placeholders to finish formatting.
public
virtual
method
|
End
()
|
||
type
|
string
|
||
returns
|
The formatted label text. |
Replaces a placeholder with the given value.
public
method
|
Int
(int32 idx,
int64 value,
FormatFlags flags = FormatFlags.Default)
|
||
type
|
LabelFormat
|
||
params
|
idx
|
[0..Count-1]
|
The placeholder index. |
value
|
The replacement value. | ||
flags
|
The number format flags to use. | ||
returns
|
|
this. |
Replaces a placeholder with the given value.
public
method
|
Num
(int32 idx,
float64 value,
FormatFlags flags = FormatFlags.Default)
|
||
type
|
LabelFormat
|
||
params
|
idx
|
[0..Count-1]
|
The placeholder index. |
value
|
The replacement value. | ||
flags
|
The number format flags to use. | ||
returns
|
|
this. |
Replaces a placeholder with the given value.
public
method
|
Obj
(int32 idx,
object value)
|
||
type
|
LabelFormat
|
||
params
|
idx
|
[0..Count-1]
|
The placeholder index. |
value
|
The replacement value. | ||
returns
|
|
this. |
Replaces a placeholder with the given value.
public
method
|
Str
(int32 idx,
StringBuilder value)
|
||
type
|
LabelFormat
|
||
params
|
idx
|
[0..Count-1]
|
The placeholder index. |
value
|
The replacement value. | ||
returns
|
|
this. |
Replaces a placeholder with the given value.
public
method
|
Str
(int32 idx,
string value,
StringEscape escape = null)
|
||
type
|
LabelFormat
|
||
params
|
idx
|
[0..Count-1]
|
The placeholder index. |
value
|
The replacement value. | ||
escape
|
Optional
escaping
rules
to
apply
to
value.
Defaults
to
null .
|
||
returns
|
|
this. |
public
override
sealed
method
|
ToString
()
|
||
type
|
string
|