ArcGIS Pro 2.8 API Reference Guide
GetLayersAsFlattenedList Method (CompositeLayer)

ArcGIS.Desktop.Mapping Namespace > CompositeLayer Class : GetLayersAsFlattenedList Method
Returns a read only flat list of layers where nested groups are not preserved.
Syntax
public IReadOnlyList<Layer> GetLayersAsFlattenedList()
Public Function GetLayersAsFlattenedList() As IReadOnlyList(Of Layer)

Return Value

A read only list of layers
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

CompositeLayer Class
CompositeLayer Members