ArcGIS Pro 2.7 API Reference Guide
FormatLocation(MapPoint) Method

ArcGIS.Desktop.Core.UnitFormats Namespace > DisplayUnitFormat Class > FormatLocation Method : FormatLocation(MapPoint) Method
Format the input location using the location unit format. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public string FormatLocation( 
   MapPoint location
)
Public Overloads Function FormatLocation( _
   ByVal location As MapPoint _
) As String

Parameters

location

Return Value

A formatted location string
Exceptions
ExceptionDescription
location
Remarks
The UnitFormatType must be of type UnitFormatType.Location or an empty string will be returned.
If the spatial reference of the MapPoint is null then WGS84 is assumed.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

DisplayUnitFormat Class
DisplayUnitFormat Members
Overload List