ArcGIS Pro 2.8 API Reference Guide
SelectElements(IEnumerable<Element>) Method

ArcGIS.Desktop.Layouts Namespace > Layout Class : SelectElements(IEnumerable<Element>) Method
The elements to be selected. If null then all elements are unselected.
Set the selected elements for the page layout.
Syntax
public void SelectElements( 
   IEnumerable<Element> elements
)
Public Sub SelectElements( _
   ByVal elements As IEnumerable(Of Element) _
) 

Parameters

elements
The elements to be selected. If null then all elements are unselected.
Exceptions
ExceptionDescription
elements must belong to layout 'URI'
Remarks
If a child of a group element is provided in the list of elements to be selected in addition to its parent then the parent is the element selected.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Layout Class
Layout Members