ArcGIS Pro 2.8 API Reference Guide
GetPredefinedProjectUnitFormats Method (DisplayUnitFormats)

ArcGIS.Desktop.Core.UnitFormats Namespace > DisplayUnitFormats Class : GetPredefinedProjectUnitFormats Method
The predefined unit format list to return
Gets the complete list of available unit formats in the current project for the given UnitFormatType. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public IList<DisplayUnitFormat> GetPredefinedProjectUnitFormats( 
   UnitFormatType unitFormat
)
Public Function GetPredefinedProjectUnitFormats( _
   ByVal unitFormat As UnitFormatType _
) As IList(Of DisplayUnitFormat)

Parameters

unitFormat
The predefined unit format list to return

Return Value

Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run
Remarks
The predefined list does not vary between projects.
If there is no project open the list of predefined units defined for the application is returned.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

DisplayUnitFormats Class
DisplayUnitFormats Members