This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Classes > F > FractionFormat CoClass (ArcObjects .NET 10.5 SDK) |
An object for formatting numbers in a fraction format.
FractionFormat is an IFractionFormat interface coclass who's members determine how the ValueToString method in the associated INumberFormat interface formats numbers.
The FractionFormat object converts from decimal values to fractions (using ValueToString) and vice versa (using StringToValue).
Use the IFractionFormat interface to either convert from a decimal fraction to a formatted fraction (using the ValueToString method) or to evaluate a formatted fraction as a decimal (using the StringToValue method). Basically, this means that ValueToString could convert an input of 0.75 to a string such as �3/4�, and 2.5 could become �2 1/2�, while StringToValue would do the reverse.
The properties FractionOption and FractionFactor give you more control over how the ValueToString conversion takes place because they allow you to use the FractionFactor to specify what denominator should be used for the output. The way in which this FractionFactor is used depends on which of the two settings (esriFractionOptionEnum) is used for the FractionOption property.
Interfaces | Description |
---|---|
IClone | Provides access to members that control cloning of objects. |
IFractionFormat | Provides access to members that format fractions. |
INumberFormat | Provides access to members that format numbers. |
INumberFormatOperations | Provides access to common operations on formatted numbers. |
IPersist (esriSystem) | Defines the single method GetClassID, which is designed to supply the CLSID of an object that can be stored persistently in the system. IPersist is the base interface for three other interfaces: IPersistStorage, IPersistStream, and IPersistFile. |
IPersistStream |
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