ArcObjects Library Reference (System)  

IRateFormat Interface

Provides access to members that format rates.

Product Availability

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

Description

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

The RateFormat coclass also inherits the INumericFormat interface, so both these interface's properties determine how numbers are formatted.

When To Use

Use the IRateFormat interface to format numeric values according to a given rate factor.

Members

Description
Read/write property RateFactor The rate factor applied to the ValueToSring and StringToValue methods.
Read/write property RateString The label appended to the formatted rate number.

CoClasses that implement IRateFormat

CoClasses and Classes Description
RateFormat An object for formatting numbers in a rate format.

Remarks

The string defined in the RateString property is appended to the format returned from the ValueToString method.

The value in the RateFactor property is divided into the ValueToString argument value. For example, ValueToString(300) with a RateFactor of 3 returns a formatted string of 100. The corresponding StringToValue method also uses this property. The value in its argument is multiplied by the value in the RateFactor property when StringToValue converts the number back. To obtain the numerical value that was used as an argument to the ValueToString method, make sure the RateFactor property is the same as it was when the ValueToString method was originally used.

See Also

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