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

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, Windows 8.1

ArcGIS Pro version: 2.0 or higher.
See Also