ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Core.UnitFormats Namespace / DisplayUnitFormats Class / GetPredefinedProjectUnitFormats Method
The predefined unit format list to return

In This Topic
    GetPredefinedProjectUnitFormats Method (DisplayUnitFormats)
    In This Topic
    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 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also