ArcGIS Pro 2.7 API Reference Guide
FormatLocation(Coordinate2D,SpatialReference) Method

ArcGIS.Desktop.Core.UnitFormats Namespace > DisplayUnitFormat Class > FormatLocation Method : FormatLocation(Coordinate2D,SpatialReference) 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( 
   Coordinate2D location,
   SpatialReference sr
)
Public Overloads Function FormatLocation( _
   ByVal location As Coordinate2D, _
   Optional ByVal sr As SpatialReference _
) As String

Parameters

location
sr

Return Value

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

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

DisplayUnitFormat Class
DisplayUnitFormat Members
Overload List