Parameters
- graphicsLayer
- elements
- The elements to be grouped.
Return Value
ArcGIS.Desktop.Layouts.GroupElement containing the grouped elements
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
System.ArgumentException | elements cannot be null or empty |
System.ArgumentException | elements must belong to graphicsLayer |
System.ArgumentException | elements must be group elements or graphic elements |
System.ArgumentException | element parents must be the same and non-null |
System.InvalidOperationException | Map has reached maximum graphics count limit of 4000 elements. One or more elements cannot be created. |
System.InvalidOperationException | Map has reached maximum graphics size limit of 10 MB. One or more elements cannot be created. |
Target Platforms: Windows 11, Windows 10