Interface INumberFormat
- Namespace
- ESRI.ArcGIS.esriSystem
- Assembly
- ESRI.Server.System.dll
Provides access to members that format numbers.
[Guid("7E4F470D-8E54-11D2-AAD8-000000000000")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface INumberFormat
Remarks
In some cases, the format produced by the ValueToString method depends on two interface's property settings. These are the coclass objects that inherit the INumericFormat interface in addition to their own default interface. These objects are the AngleFormat, LatLonFormat, PercentageFormat, and RateFormat.
Methods
StringToValue(string)
Converts a formatted string to a numeric value.
double StringToValue(string str)
Parameters
strstring
Returns
Remarks
When using the StringToValue method to obtain a ValueToString argument value, the properties in the associated interface must be set the same as they were when the ValueToString method was used. This applies in cases where ValueToString may perform a numerical conversion (in the IAngleFormat, IFractionFormat, IPercentageFormat, and IRateFormat interfaces).
ValueToString(double)
Converts a numeric value to a formatted string.
string ValueToString(double Value)
Parameters
Valuedouble