ArcGIS Pro 3.0 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, Windows 8.1

    See Also