ArcGIS Pro 2.8 API Reference Guide
ClearElementSelection Method (LayoutView)
Example 

ArcGIS.Desktop.Layouts Namespace > LayoutView Class : ClearElementSelection Method
Clear all layout elements in the layout view. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void ClearElementSelection()
Public Sub ClearElementSelection() 
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Example
//Clear the layout's element selection.

layoutView.ClearElementSelection();
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

LayoutView Class
LayoutView Members