ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / GraphicsLayerExtensions Class / BringToFront Method / BringToFront(GraphicsLayer,IEnumerable<Element>) Method
The elements to bring to the front

In This Topic
    BringToFront(GraphicsLayer,IEnumerable<Element>) Method
    In This Topic
    Bring the elements to the front of their parent's element collection. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public static void BringToFront( 
       GraphicsLayer graphicsLayer,
       IEnumerable<Element> elements
    )
    Public Overloads Shared Sub BringToFront( _
       ByVal graphicsLayer As GraphicsLayer, _
       ByVal elements As IEnumerable(Of Element) _
    ) 

    Parameters

    graphicsLayer
    elements
    The elements to bring to the front
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    elements cannot be null or empty
    elements must belong to graphicsLayer
    element parents must be the same and non-null
    Remarks
    Refer to CanBringForward(GraphicsLayer,IEnumerable<Element>) to check whether the elements can be brought forward.
    The map view displaying the graphics layer should be initialized.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also