ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / ILayerFactory Interface / CreateGroupLayer Method
A layer container i.e. a map or another group layer where the group layer will belong to.
A 0-based index represents the position of the group layer within the container. 0 means it will added to the very top as the first layer in the container.
Name of the group layer
Version

CreateGroupLayer Method (ILayerFactory)
Create a group layer. This method must be called on the MCT. Use QueuedTask.Run.
Syntax

Parameters

container
A layer container i.e. a map or another group layer where the group layer will belong to.
index
A 0-based index represents the position of the group layer within the container. 0 means it will added to the very top as the first layer in the container.
layerName
Name of the group layer

Return Value

Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Conainer cannot be null.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also