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


IGroupElement.AddElement Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

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