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


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

IGraphicsContainerSelect.SelectedElement Method

Returns the nth selected element. Use Selection count to get the number of selected elements.

[Visual Basic .NET]
Public Function SelectedElement ( _
    ByVal Index As Integer _
) As IElement
[C#]
public IElement SelectedElement (
    int Index
);
[C++]
HRESULT SelectedElement(
  long Index
);
[C++]
Parameters
Index [in]

Index is a parameter of type long

Product Availability

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

See Also

IGraphicsContainerSelect Interface

.NET Samples

Brushing to create a selection