ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Desktop.Presentations Namespace / PresentationPage Class / DeleteElements Method / DeleteElements(Func<Element,Boolean>) Method
Represents the method that defines a set of criteria and determines whether the specified object meets those criteria.

In This Topic
    DeleteElements(Func<Element,Boolean>) Method
    In This Topic
    Deletes an array of elements from a presentation page. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void DeleteElements( 
       Func<Element,bool> predicate
    )
    Public Overloads Sub DeleteElements( _
       ByVal predicate As Func(Of Element,Boolean) _
    ) 

    Parameters

    predicate
    Represents the method that defines a set of criteria and determines whether the specified object meets those criteria.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.5 or higher.
    See Also