ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / CompositeLayer Class / GetLayersAsFlattenedList Method

In This Topic
    GetLayersAsFlattenedList Method (CompositeLayer)
    In This Topic
    Returns a read only flat list of layers where nested groups are not preserved.
    Syntax
    public virtual IReadOnlyList<Layer> GetLayersAsFlattenedList()
    Public Overridable Function GetLayersAsFlattenedList() As IReadOnlyList(Of Layer)

    Return Value

    A read only list of layers
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also