Description
NumberFormat is a helper class that creates custom number format strings, which are used for formatting numbers and dates. Use Style.NumberFormat to set a number format for a specific style.
C#
vb.net
Examples
C#
vb.net
Methods
Name |
Description |
---|---|
Creates an accounting format string. | |
CreateCurrency(Int32, Boolean, Boolean, Boolean, NumberFormat.Color) |
Creates a format string for displaying currency values. |
CreateCurrency(Int32, Boolean, Boolean, NumberFormat.Color, String, String, Boolean, Boolean) |
Creates a format string for displaying currency values, and allows locale-specific currency symbols. |
Creates a string for displaying fractions. | |
Creates a string for displaying fractions. | |
CreateNumber(Int32, Boolean, Boolean, Boolean, Boolean, NumberFormat.Color) |
Creates a format string for displaying numbers. |
Creates a string for displaying percentages. | |
Creates a scientific number format string. |
Nested Classes
Name |
Description |
---|---|
The Color enumeration contains the colors that can be used to display negative numbers in a NumberFormat. | |
NumberFormat values for Date data types | |
NumberFormat values for specialized American numbers | |
NumberFormat values for Time data types |