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

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

ArcGIS Pro version: 3 or higher.
See Also