ArcGIS Pro 2.7 API Reference Guide
GetAvailableLocationUnitFormats Method

ArcGIS.Desktop.Mapping Namespace > Map Class : GetAvailableLocationUnitFormats Method
Gets the list of available map location unit formats for the given map. This method must be called on the MCT. Use QueuedTask.Run
Syntax
public IList<DisplayUnitFormat> GetAvailableLocationUnitFormats()
Public Function GetAvailableLocationUnitFormats() As IList(Of DisplayUnitFormat)

Return Value

Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Remarks
Linear location unit formats are not included in the list of available unit formats if the map spatial reference uses a geographic coordinate system.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Map Class
Map Members