This document is archived and information here might be outdated. Recommended version. |
Convert Esri unit enumerations to strings.
[Visual Basic .NET] Public Function EsriUnitsAsString ( _ ByVal units As esriUnits, _ ByVal appearance As esriCaseAppearance, _ ByVal bPlural As Boolean _ ) As String
[C#] public string EsriUnitsAsString ( esriUnits units, esriCaseAppearance appearance, bool bPlural );
[C++]
HRESULT EsriUnitsAsString(
esriUnits units,
esriCaseAppearance appearance,
VARIANT_BOOL bPlural
);
[C++] Parameters units [in]
units is a parameter of type esriUnits appearance [in]
appearance is a parameter of type esriCaseAppearance bPlural [in]
bPlural is a parameter of type bool
Converts the specified units to a string. Specify the case (eg. lower or upper case) of the string and whether the string specifies a single unit or many unit(s).
The EsriUnitsAsString method is useful for providing text to the user interface.