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

In This Topic
    UnGroupElement Method (GraphicsLayerExtensions)
    In This Topic
    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
    )
    Public Shared Sub UnGroupElement( _
       ByVal graphicsLayer As GraphicsLayer, _
       ByVal group As GroupElement _
    ) 

    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