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


IARUnitConverter.GetLocationAsString Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (PublisherControls)  

IARUnitConverter.GetLocationAsString Method

Converts the specified coordinates and units to strings.

[Visual Basic .NET]
Public Sub GetLocationAsString ( _
    ByVal pMap As ARMap, _
    ByVal xCoord As Double, _
    ByVal yCoord As Double, _
    ByVal displayUnits As esriARUnits, _
    ByRef sXLocation As String, _
    ByRef sYLocation As String, _
    ByRef sUnits As String _
)
[C#]
public void GetLocationAsString (
    ARMap pMap,
    double xCoord,
    double yCoord,
    esriARUnits displayUnits,
    ref string sXLocation,
    ref string sYLocation,
    ref string sUnits
);

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

Converts the specified x map coordinate, y map coordinate and unit of measure into three separate strings. 

Errors Returned

2122 800A084A: The specified enum value is invalid 

See Also

IARUnitConverter Interface