Provides access to members that format rates.
Product Availability
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 | ||
---|---|---|
RateFactor | The rate factor applied to the ValueToSring and StringToValue methods. | |
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
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