ArcObjects Library Reference (PublisherControls)  

IARUnitConverter.EsriUnitsAsAbbreviatedString Method

Converts the specified units to a string abbreviation in upper or lower case.

[Visual Basic .NET]
Public Function EsriUnitsAsAbbreviatedString ( _
    ByVal units As esriARUnits, _
    ByVal caseAppearance As esriARCaseAppearance _
) As String
[C#]
public string EsriUnitsAsAbbreviatedString (
    esriARUnits units,
    esriARCaseAppearance caseAppearance
);

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

Converts the specified units to an abbreviated string.

[C#]

ARUnitConverter pARUnitConverter = axArcReaderControl1.ARUnitConverter;

//The following line will display a message box with the string "FT"

MessageBox.Show (pARUnitConverter.EsriUnitsAs AbbreviatedString(esriARUnits.esriARUnitsFeet, esriARCaseAppearanceUpper));

[Visual Basic .NET]

Dim pARUnitConverter As ARUnitConverter

pARUnitConverter = AxArcReaderControl1.ARUnitConverter

'The following line will display a message box with the string "FT"

Msgbox(pARUnitConverter.EsriUnitsAsAbbreviatedString(esriARUnits.esriARUnitsFeet, esriARCaseAppearanceUpper))

See Also

IARUnitConverter Interface