Skip to end of metadata
Go to start of metadata

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

CreateAccounting(Int32, Boolean, NumberFormat.Color)

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.

CreateFraction(Int32)

Creates a string for displaying fractions.

CreateFraction(Int32, Int32)

Creates a string for displaying fractions.

CreateNumber(Int32, Boolean, Boolean, Boolean, Boolean, NumberFormat.Color)

Creates a format string for displaying numbers.

CreatePercentage(Int32)

Creates a string for displaying percentages.

CreateScientific(Int32)

Creates a scientific number format string.

Nested Classes

Name

Description

Color

The Color enumeration contains the colors that can be used to display negative numbers in a NumberFormat.

DateFormat

NumberFormat values for Date data types

Special_EN_US

NumberFormat values for specialized American numbers

TimeFormat

NumberFormat values for Time data types
  • No labels