ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Layouts Namespace / Element Class / SetTOCPositionAbsolute Method
Reference to a Layout or a GroupElement
Boolean

In This Topic
    SetTOCPositionAbsolute Method (Element)
    In This Topic
    Sets the position of an element either at the top or bottom of the layout TOC or a group element. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Sub SetTOCPositionAbsolute( _
       ByVal targetContainer As IElementContainer, _
       ByVal isTop As Boolean _
    ) 
    public void SetTOCPositionAbsolute( 
       IElementContainer targetContainer,
       bool isTop
    )

    Parameters

    targetContainer
    Reference to a Layout or a GroupElement
    isTop
    Boolean
    Exceptions
    ExceptionDescription
    This method must be called within the lambda passed to QueuedTask.Run.
    Remarks
    If set to true, the element is placed at the top of the layout TOC or the top position in a group element. Elements can be easily moved into or out of groups.
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also