ClearElementSelection Method (LayoutView)
Clear all layout elements in the layout view.
This method must be called on the MCT. Use QueuedTask.Run.
LayoutView_ClearSelection
//Clear the layout's element selection.
await QueuedTask.Run(() => layoutView.ClearElementSelection());
Clear the selection in a layout view
//If the a layout view is active, clear its selection
LayoutView activeLayoutView = LayoutView.Active;
if (activeLayoutView != null)
{
activeLayoutView.ClearElementSelection();
}
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.