ArcGIS Pro 2.7 API Reference Guide
GetElements Method (Layout)

ArcGIS.Desktop.Layouts Namespace > Layout Class : GetElements Method
Get the collection of elements from the page layout. Nesting within GroupElement is preserved.
Syntax
public IReadOnlyList<Element> GetElements()
Public Function GetElements() As IReadOnlyList(Of Element)

Return Value

Remarks
Use GetElementsAsFlattenedList to flatten the collection otherwise enumerate any returned GroupElement individually.
Elements are returned in Z order. The 0th Element is at the back or 'bottom' and the 'Nth' element is at the front or 'top'.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Layout Class
Layout Members