ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / IElementContainer Interface / RemoveElement Method
The element name.
(optional) When true the search continues in group elements. (default value = true)

In This Topic
    RemoveElement Method (IElementContainer)
    In This Topic
    Removes the element specified by name.
    Syntax
    void RemoveElement( 
       string elementName,
       bool recurse
    )
    Sub RemoveElement( _
       ByVal elementName As String, _
       Optional ByVal recurse As Boolean _
    ) 

    Parameters

    elementName
    The element name.
    recurse
    (optional) When true the search continues in group elements. (default value = true)
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also