Format
Description
- Extended by
-
Format_1
Format_N sealed
Format_StringBuilder sealed
Helper class for string formatting using simple placeholder patterns.
A format pattern is a string with embedded placeholders (#
or @
characters):
"Some String with # placeholders @ in it."
The placeholders are replaced one after another (from left to right) by calling one of the following methods for each placeholder:
Use the ##
and @@
tokens in order to insert a plain #
resp. @
character in the pattern.
Public / Methods
Eight
Formats a pattern with eight placeholders.
Formatting is finished automatically after all placeholder have been specified.
Exponent
Specifies the decimal exponent to use for formatting integer values (see FormatFlags.Exponent).
Five
Formats a pattern with five placeholders.
Formatting is finished automatically after all placeholder have been specified.
Four
Formats a pattern with four placeholders.
Formatting is finished automatically after all placeholder have been specified.
Many
Formats a pattern with any number of placeholders.
Calling object.ToString on the returned object will finish the formatting.
Nine
Formats a pattern with nine placeholders.
Formatting is finished automatically after all placeholder have been specified.
One
Formats a pattern with one placeholder.
Formatting is finished automatically after all placeholder have been specified.
Row
17 overloads
Formats the given values in a row, one after another (simple concatenation).
Formats the given values in a row, one after another (simple concatenation).
Formats the given values in a row, one after another (simple concatenation).
Formats the given values in a row, one after another (simple concatenation).
Formats the given values in a row, one after another (simple concatenation).
Formats the given values in a row, one after another (simple concatenation).
Formats the given values in a row, one after another (simple concatenation).
Formats the given values in a row, one after another (simple concatenation).
Formats the given values in a row, one after another (simple concatenation).
Formats the given values in a row, one after another (simple concatenation).
Formats the given values in a row, one after another (simple concatenation).
Formats the given values in a row, one after another (simple concatenation).
Formats the given values in a row, one after another (simple concatenation).
Formats the given values in a row, one after another (simple concatenation).
Formats the given values in a row, one after another (simple concatenation).
Formats the given values in a row, one after another (simple concatenation).
Formats the given values in a row, one after another (simple concatenation).
Seven
Formats a pattern with seven placeholders.
Formatting is finished automatically after all placeholder have been specified.
Six
Formats a pattern with six placeholders.
Formatting is finished automatically after all placeholder have been specified.