ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / GraphicsLayerExtensions Class / UnGroupElement Method
The group element whose elements will be ungrouped
Version

    UnGroupElement Method (GraphicsLayerExtensions)
    Ungroup the elements contained in 'group'. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public static void UnGroupElement( 
       GraphicsLayer graphicsLayer,
       GroupElement group
    )

    Parameters

    graphicsLayer
    group
    The group element whose elements will be ungrouped
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Value cannot be null: group
    elements must belong to graphicsLayer
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also