ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Core.UnitFormats Namespace / DisplayUnitFormat Class / FormatLocation Method / FormatLocation(MapPoint) Method
Version

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
)

Parameters

location

Return Value

A formatted location string
Exceptions
ExceptionDescription
location
This method or property must be called within the lambda passed to QueuedTask.Run
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 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also