ArcGIS Pro 2.6 API Reference Guide
GetLayersAsFlattenedList Method (AnnotationLayer)

ArcGIS.Desktop.Mapping Namespace > AnnotationLayer Class : GetLayersAsFlattenedList Method
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 10, Windows 8.1, Windows 7

See Also

Reference

AnnotationLayer Class
AnnotationLayer Members