This document is archived and information here might be outdated.  Recommended version.


INumberFormat Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IN > INumberFormat Interface
ArcGIS Developer Help

INumberFormat Interface

Provides access to members that format numbers.

Product Availability

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

Description

The INumberFormat interface exposes the two number formatting methods used by several interfaces and coclass objects. The ValueToString method formats numerical values in a variety of formats depending on the interface used and its property settings. The StringToValue method returns values from formatted strings.

When To Use

Use the ValueToString method to format numbers with any of the objects listed under CoClasses below. Use the StringToValue method to convert formatted strings to numeric values.

Members

Name Description
Method StringToValue Converts a formatted string to a numeric value.
Method ValueToString Converts a numeric value to a formatted string.

Classes that implement INumberFormat

Classes Description
AngleFormat An object for formatting numbers in an angle format.
CurrencyFormat An object for formatting numbers in a currency format.
CustomNumberFormat An object for formatting numbers in a user-defined format.
DirectionFormat An object for formatting numbers in a direction format.
FractionFormat An object for formatting numbers in a fraction 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.
ScientificFormat An object for formatting numbers in a scientific format.

Remarks

In some cases, the format produced by the ValueToString method depends on two interface's property settings. These are the coclass objects that inherit the INumericFormat interface in addition to their own default interface. These objects are the AngleFormat, LatLonFormat, PercentageFormat, and RateFormat.

See Also

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