ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / FeatureLayer Class / SetFeatureDrawOrder Method / SetFeatureDrawOrder(List<CIMFeatureSortInfo>) Method
The feature sort info to use for drawing order. Can be null

In This Topic
    SetFeatureDrawOrder(List<CIMFeatureSortInfo>) Method
    In This Topic
    Set the layer feature drawing order. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void SetFeatureDrawOrder( 
       List<CIMFeatureSortInfo> drawingOrder
    )
    Public Overloads Sub SetFeatureDrawOrder( _
       ByVal drawingOrder As List(Of CIMFeatureSortInfo) _
    ) 

    Parameters

    drawingOrder
    The feature sort info to use for drawing order. Can be null
    Exceptions
    ExceptionDescription
    "Invalid drawing order inputs -check field name(s) exist and/or are the correct field type"
    Layer does not support feature drawing order
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    Any existing drawing order will be overwritten. Providing a null or empty drawingOrder list will clear the existing feature drawing order (if any). Internally, GetCanSetFeatureDrawOrder(List<CIMFeatureSortInfo>) is called to determine if the provided drawingOrder can be used.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.6 or higher.
    See Also