ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / GroupLayer Class / MoveStandaloneTable Method / MoveStandaloneTable(StandaloneTable,CompositeLayerWithTables,Int32) Method
A table to be moved.
The layer container to move the StandaloneTable to.
The position specified by the 0-based index. -1 will move the table the bottom of the specified container. If the index is invalid, the StandaloneTable is moved to the bottom.

In This Topic
    MoveStandaloneTable(StandaloneTable,CompositeLayerWithTables,Int32) Method
    In This Topic
    Moves a StandaloneTable to a position within the specified targetLayer container. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void MoveStandaloneTable( 
       StandaloneTable table,
       CompositeLayerWithTables targetLayer,
       int position
    )
    Public Overloads Sub MoveStandaloneTable( _
       ByVal table As StandaloneTable, _
       ByVal targetLayer As CompositeLayerWithTables, _
       ByVal position As Integer _
    ) 

    Parameters

    table
    A table to be moved.
    targetLayer
    The layer container to move the StandaloneTable to.
    position
    The position specified by the 0-based index. -1 will move the table the bottom of the specified container. If the index is invalid, the StandaloneTable is moved to the bottom.
    Exceptions
    ExceptionDescription
    The table or targetLayer is null.
    Invalid container. The StandaloneTable is not part of this container or one of it's descendents.
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    The StandaloneTable must already be part of this container or one of it's descendents. To move the StandaloneTable to the root of the TOC use Map.MoveStandaloneTable. To move the StandaloneTable into a group layer from the root of the TOC use Map.MoveStandaloneTable.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also