ArcGIS Pro 2.7 API Reference Guide
FlattenLayers Method

ArcGIS.Desktop.Mapping Namespace > MappingExtensions Class : FlattenLayers Method
Returns an enumeration of layers. Removes group layers and recurses their sublayers to add them to the list
Syntax
public static IEnumerable<Layer> FlattenLayers( 
   IEnumerable<Layer> layers
)
Public Shared Function FlattenLayers( _
   ByVal layers As IEnumerable(Of Layer) _
) As IEnumerable(Of Layer)

Parameters

layers
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

MappingExtensions Class
MappingExtensions Members