ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / CompositeFeatureLayer Class / GetLayersAsFlattenedList Method

In This Topic
    GetLayersAsFlattenedList Method (CompositeFeatureLayer)
    In This Topic
    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 11, Windows 10

    ArcGIS Pro version: 3.3 or higher.
    See Also