Interface RateFormat
- Namespace
- ESRI.ArcGIS.esriSystem
- Assembly
- ESRI.Server.System.dll
An object for formatting numbers in a rate format.
[Guid("7E4F470D-8E54-11D2-AAD8-000000000000")]
public interface RateFormat : INumberFormat
- Inherited Members
Remarks
RateString and RateFactor determine how the formatting takes place when using the ValueToString and StringToValue methods of the associated INumberFormat interface.
When using the ValueToString method, any string defined in the RateString property (the default value is Null) is appended to the method’s input value. Also, the value in the RateFactor property (the default value is 1000) is divided into the ValueToString argument value. For example, ValueToString (300) with a RateFactor of 3 and a RateString of “loaves” would return a formatted string of “100 loaves”.
The corresponding StringToValue method also uses both these properties. The value from the input string is multiplied by the value in the RateFactor property when StringToValue converts the number back. Also, if set, the RateString is stripped from the result. 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.