ArcGIS Pro 2.7 API Reference Guide
GetDefaultProjectUnitFormat Method (DisplayUnitFormats)

ArcGIS.Desktop.Core.UnitFormats Namespace > DisplayUnitFormats Class : GetDefaultProjectUnitFormat Method
The default unit format to return
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
)
Public Function GetDefaultProjectUnitFormat( _
   ByVal defaultFormatType As UnitFormatType _
) As DisplayUnitFormat

Parameters

defaultFormatType
The default unit format to return

Return Value

Exceptions
ExceptionDescription
Thrown when a method is called on the wrong Pro thread
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 10, Windows 8.1

See Also

Reference

DisplayUnitFormats Class
DisplayUnitFormats Members