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


IGraphicsContainerSelect.SelectedElements Property (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.SelectedElements Property
ArcGIS Developer Help

IGraphicsContainerSelect.SelectedElements Property

The selected elements.

[Visual Basic .NET]
Public ReadOnly Property SelectedElements As IEnumElement
[C#]
public IEnumElement SelectedElements {get;}
[C++]
HRESULT get_SelectedElements(
  IEnumElement** Elements
);
[C++]
Parameters
Elements [out, retval]

Elements is a parameter of type IEnumElement**

Product Availability

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

Remarks

Returns an IEnumElement containing all of the selected elements. 

An IEnumElement reference to the element selection is also available from IViewManager::ElementSelection and IActiveView::Selection (QI from ISelection).

See Also

IGraphicsContainerSelect Interface | IViewManager.ElementSelection Property

.NET Samples

Move a graphic along a path in ArcMap