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

GetLayersAsFlattenedList Method (AnnotationLayer)
Returns a read only list of sub layers.
Syntax
public IReadOnlyList<Layer> GetLayersAsFlattenedList()

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