| StringBuilderExtensionsAppendNumber Method (StringBuilder, Single, Int32, AppendNumberOptions) |
Converts a float number to a string and adds it to the string builder.
Namespace: DigitalRune.TextAssembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax public static void AppendNumber(
this StringBuilder builder,
float number,
int decimalCount,
AppendNumberOptions options
)
<ExtensionAttribute>
Public Shared Sub AppendNumber (
builder As StringBuilder,
number As Single,
decimalCount As Integer,
options As AppendNumberOptions
)
public:
[ExtensionAttribute]
static void AppendNumber(
StringBuilder^ builder,
float number,
int decimalCount,
AppendNumberOptions options
)
[<ExtensionAttribute>]
static member AppendNumber :
builder : StringBuilder *
number : float32 *
decimalCount : int *
options : AppendNumberOptions -> unit
Parameters
- builder
- Type: System.TextStringBuilder
The string builder. - number
- Type: SystemSingle
The number. - decimalCount
- Type: SystemInt32
The number of decimal digits to show. - options
- Type: DigitalRune.TextAppendNumberOptions
The format options.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
StringBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions See Also