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

ClearElementSelection Method (Layout)
Clear all selected elements in the page layout.
Syntax
public void ClearElementSelection()
Example
Clear the selection in a layout
//Clear the layout selection.
layout.ClearElementSelection();
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.7 or higher.
See Also