ArcObjects Library Reference (System)  

INumericFormat Interface

Provides access to members that format numbers.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The members in the INumericFormat interface define how the ValueToString method in the associated INumberFormat interface formats numbers.

When To Use

Use the INumericFormat interface to format numbers with any of the objects listed under CoClasses below.

Members

Description
Read/write property AlignmentOption The alignment option applied to the ValueToString method.
Read/write property AlignmentWidth The alignment width applied to the ValueToString method.
Read/write property RoundingOption The rounding option applied to the ValueToString method.
Read/write property RoundingValue The rounding value, whose meaning depends on the rounding option.
Read/write property ShowPlusSign Indicates if formatted numbers contain a plus sign for positive numbers.
Read/write property UseSeparator Indicates if formatted numbers contain digit grouping symbols.
Read/write property ZeroPad Indicates if formatted numbers contain padded zeros to the right of the decimal.

CoClasses that implement INumericFormat

CoClasses and Classes Description
AngleFormat An object for formatting numbers in an angle format.
LatLonFormat An object for formatting numbers in a lat/lon format.
NumericFormat An object for formatting numbers in a variety of numeric formats.
PercentageFormat An object for formatting numbers in a percentage format.
RateFormat An object for formatting numbers in a rate format.

Remarks

The format produced with the NumericFormat coclass object is determined solely on the INumericFormat interface property settings. Formats produced with other objects listed under CoClasses depend on two interface's property settings. These objects inherit the INumericFormat interface in addition to their own default interface.

See Also

IScientificNumberFormat Interface | PercentageFormat Class | INumberFormat Interface | INumericFormat Interface | FractionFormat Class | IPercentageFormat Interface | ILatLonFormat Interface | ILatLonFormat2 Interface | LatLonFormat Class | ICustomNumberFormat Interface | RateFormat Class | NumericFormat Class | ScientificFormat Class | IRateFormat Interface | AngleFormat Class | IFractionFormat Interface | CurrencyFormat Class | CustomNumberFormat Class | IAngleFormat Interface

.NET Snippets

Decimal Degree Angle Radian Example |

.NET Related Topics

Creating map grid labels |