ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / ILayerContainer Interface / GetLayersAsFlattenedList Method

In This Topic
    GetLayersAsFlattenedList Method (ILayerContainer)
    In This Topic
    Returns a read only flat list of layers where nested groups are not preserved.
    Syntax
    IReadOnlyList<Layer> GetLayersAsFlattenedList()
    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 or higher.
    See Also