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

.NET Samples

Arranging MOLE graphics using manual decluttering (Code Files: MainForm) | Decluttering MOLE graphics using leadering and stacking (Code Files: MainForm) |

.NET Related Topics

DefenseSolutions |