ArcObjects Library Reference (Carto)  

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 (Code Files: cmdMoveGraphicAlongPath)