Description |
---|
Excerpt |
---|
Creates a format string for displaying numbers. |
Signature | C# | C# |
---|---|---|
Wiki Markup | ||
{description}
{excerpt}Creates a format string for displaying numbers.{excerpt}
{signature:C#}
public System.String CreateNumber(int numDecimalPlaces, boolean dropTrailingZeros, boolean use1000Seperator, boolean useNegativeSign, boolean useParensForNegatives, Color negativeColor)
| ||
Signature | ||
{signature}{signature:vb.net | vb.net | }
Public Function CreateNumber(ByVal numDecimalPlaces As Integer, ByVal dropTrailingZeros As Boolean, ByVal use1000Seperator As Boolean, ByVal useNegativeSign As Boolean, ByVal useParensForNegatives As Boolean, ByVal negativeColor As Color) As String
|
Parameters |
---|
...
The number of decimal places to display.
...
If true
, trailing zeros will be dropped. If false
, trailing zeros will be displayed.
...
If true
, the 1000 separator (,) will be displayed.
...
If true
, the negative sign will be used.
...
If true
, negative numbers will be shown in parentheses.
...
A color to use when displaying negative numbers. negativeColor
may be null.
Returns |
---|
A number format string. |
Example | |||
---|---|---|---|
Code Block | | csharp | csharp |
title | C# | ||
Code Block | vb.net | title |