ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / FeatureLayer Class / GetCanSetFeatureDrawOrder Method / GetCanSetFeatureDrawOrder(String,SortOrderType) Method
The name of the field to use for drawing order. Cannot be null
The sort direction

In This Topic
    GetCanSetFeatureDrawOrder(String,SortOrderType) Method
    In This Topic
    Gets whether or not the given feature draw order can be set on the layer. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public bool GetCanSetFeatureDrawOrder( 
       string fieldName,
       SortOrderType sortDirection
    )
    Public Overloads Function GetCanSetFeatureDrawOrder( _
       ByVal fieldName As String, _
       ByVal sortDirection As SortOrderType _
    ) As Boolean

    Parameters

    fieldName
    The name of the field to use for drawing order. Cannot be null
    sortDirection
    The sort direction

    Return Value

    True if the field can be used, false otherwise.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    The field must exist in the layer. Any text, date, or numeric field can be used for draw order. Specifically, the following field types are not supported: Geometry/Shape, Blob, Raster, Guid, Global id, and Xml
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.6 or higher.
    See Also