ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / IElementContainer Interface / MoveElement Method
The element name.
The index to move the element to.

In This Topic
    MoveElement Method
    In This Topic
    Moves the element specified by name to the new index.
    Syntax
    void MoveElement( 
       string elementName,
       int newIndex
    )
    Sub MoveElement( _
       ByVal elementName As String, _
       ByVal newIndex As Integer _
    ) 

    Parameters

    elementName
    The element name.
    newIndex
    The index to move the element to.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also