This document is archived and information here might be outdated.  Recommended version.


IARUnitConverter.EsriUnitsAsAbbreviatedString Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARUnitConverter Interface > IARUnitConverter.EsriUnitsAsAbbreviatedString Method
ArcGIS Developer Help

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