ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Layouts Namespace / IElementFactory Interface / CreateGroupElement Method
The parent element container
The collection of elements to be grouped (optional)
An element name (optional)
Select after create flag (default is true) (optional)
Additional element properties (optional)

In This Topic
    CreateGroupElement Method (IElementFactory)
    In This Topic
    Create a group element from the input element collection and element properties.
    Syntax

    Parameters

    elementContainer
    The parent element container
    elements
    The collection of elements to be grouped (optional)
    elementName
    An element name (optional)
    select
    Select after create flag (default is true) (optional)
    groupElementInfo
    Additional element properties (optional)

    Return Value

    Remarks
    Only elements contained within the provided elementContainer will be added to the group element. If elements is null or an empty collection then an empty GroupElement will be created.
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also