This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IG > IGroupElement Interface > IGroupElement.AddElement Method (ArcObjects .NET 10.4 SDK) |
Adds the given element to the group.
[Visual Basic .NET] Public Sub AddElement ( _ ByVal Element As IElement _ )
[C#] public void AddElement ( IElement Element );
[C++]
HRESULT AddElement(
IElement* Element
);
[C++]
Parameters Element [in]
Element is a parameter of type IElement
AddElement can be used to add additional elements to the group. This method is most commonly used when you want to select a set of elements in the map or layout and programmatically group them together.