ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Layouts Namespace / Layout Class / ClearElementSelection Method
Example

In This Topic
    ClearElementSelection Method (Layout)
    In This Topic
    Clear all selected elements in the page layout.
    Syntax
    Public Sub ClearElementSelection() 
    public void ClearElementSelection()
    Example
    Clear the selection in a layout
    {
      //Clear the layout selection.
      layout.ClearElementSelection();
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also