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

In This Topic
    GetDefaultProjectUnitFormat Method (DisplayUnitFormats)
    In This Topic
    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
    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.0 or higher.
    See Also