This document is archived and information here might be outdated.  Recommended version.


IGroupElement.AddElement Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IG > IGroupElement Interface > IGroupElement.AddElement Method
ArcGIS Developer Help

IGroupElement.AddElement Method

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*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

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.

See Also

IGroupElement Interface