ArcGIS Pro 2.9 API Reference Guide
GetElementsAsFlattenedList Method (Layout)

ArcGIS.Desktop.Layouts Namespace > Layout Class : GetElementsAsFlattenedList Method
Get the collection of Element from the page layout as a flattened list. Nested groups within GroupElement are not preserved.
Syntax
public IReadOnlyList<Element> GetElementsAsFlattenedList()
Public Function GetElementsAsFlattenedList() As IReadOnlyList(Of Element)

Return Value

Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

Layout Class
Layout Members