ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Core.UnitFormats Namespace / DisplayUnitFormats Class / GetDefaultProjectUnitFormat Method
The default unit format to return
Version

GetDefaultProjectUnitFormat Method (DisplayUnitFormats)
Gets the default unit format in the current project for the given UnitFormatType. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public DisplayUnitFormat GetDefaultProjectUnitFormat( 
   UnitFormatType defaultFormatType
)

Parameters

defaultFormatType
The default unit format to return

Return Value

Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run
Remarks
The default unit formats can vary between projects. If there is no project open the current application default format is returned for the given UnitFormatType
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also