ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / AnnotationLayer Class / GetLayersAsFlattenedList Method

In This Topic
    GetLayersAsFlattenedList Method (AnnotationLayer)
    In This Topic
    Returns a read only list of sub layers.
    Syntax
    public IReadOnlyList<Layer> GetLayersAsFlattenedList()
    Public Function GetLayersAsFlattenedList() As IReadOnlyList(Of Layer)

    Return Value

    A read only list of AnnotationSubLayers as Layer type not as AnnotationSubLayer type.
    Remarks
    AnnotationLayer is a composite layer with one level of sublayers, no group layers. Therefore this method is functionally equivalent to the AnnotationLayer.Layers property
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also