Interface IFractionFormat
- Namespace
- ESRI.ArcGIS.esriSystem
- Assembly
- ESRI.Server.System.dll
Provides access to members that format fractions.
[Guid("7E4F4713-8E54-11D2-AAD8-000000000000")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IFractionFormat
Properties
FractionFactor
The maximum number of digits for the numerator or denominator, or the denominator of the formatted fraction.
int FractionFactor { get; set; }
Property Value
FractionOption
The fraction option determines how the numerator and denominator of the fraction are treated.
esriFractionOptionEnum FractionOption { get; set; }
Property Value
Remarks
For example, when using esriSpecifyFractionDenominator, if the FractionFactor is set to 8, then the resulting fraction would be given in eighths. The result will be rounded to fit the denominator specified, as both 0.75 and 0.85 become “3/4” in the example below.
When using StringToValue, neither the FractionOption nor the FractionFactor properties are used; instead, a straightforward evaluation of the fraction is carried out. For example, “5/8” returns a value of 0.625, and “6 3/4” returns 6.75.