ArcGIS Pro 2.7 API Reference Guide
UnGroupElements Method (GraphicsLayerExtensions)

ArcGIS.Desktop.Mapping Namespace > GraphicsLayerExtensions Class : UnGroupElements Method
The group elements whose elements are to be ungrouped
Ungroup the elements contained in 'groups'. This method must be called on the MCT. Use QueuedTask.Run
Syntax
public static void UnGroupElements( 
   GraphicsLayer graphicsLayer,
   IEnumerable<GroupElement> groups
)
Public Shared Sub UnGroupElements( _
   ByVal graphicsLayer As GraphicsLayer, _
   ByVal groups As IEnumerable(Of GroupElement) _
) 

Parameters

graphicsLayer
groups
The group elements whose elements are to be ungrouped
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
groups cannot be null or empty
elements must belong to graphicsLayer
element parents must be the same and non-null
Remarks
All group elements in the input collection must have the same parent.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

GraphicsLayerExtensions Class
GraphicsLayerExtensions Members