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


ISelectionEvents Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

ISelectionEvents Interface

Provides access to events that occur when the selection changes.

Product Availability

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

Members

Description
Event SelectionChanged Call this function to fire the selection changed event.

CoClasses that implement ISelectionEvents

CoClasses and Classes Description
AreaSeriesProperties (esriCartoUI) A container for the display and manipulation of area graph series.
BarSeriesProperties (esriCartoUI) A container for the display and manipulation of bar graph series.
BoxPlotSeriesProperties (esriCartoUI) A container for the display and manipulation of box plot graph series.
CompositeGraphicsLayer A collection of graphics layers that behave like single layer.
ElementSelection (esriArcMapUI) Maintains the the graphic element selection.
EngineFeatureInspector (esriControls) Feature Inspector for Engine.
FDOGraphicsLayer A collection of properties for an annotation layer (feature data object graphics layer).
FeatureInspector (esriEditor) Default feature inspector for the Editor.
FunctionSeriesProperties (esriCartoUI) A container for the display and manipulation of function graph series.
Globe (esriGlobeCore) A container for the display and manipulation of data in the Globe.
HistogramSeriesProperties (esriCartoUI) A container for the display and manipulation of histogram graph series.
LineSeriesProperties (esriCartoUI) A container for the display and manipulation of line graph series.
Map A container for the display and manipulation of map data.
NAWindow (esriNetworkAnalystUI) The network analysis window.
PageLayout Page Layout class contains maps and map surrounds.
PieSeriesProperties (esriCartoUI) A container for the display and manipulation of pie graph series.
PointSeriesProperties (esriCartoUI) A container for the display and manipulation of scatter plot graph series.
ScatterPlotMatrixSeriesProperties (esriCartoUI) A container for the display and manipulation of scatter plot matrix graph.
Scene (esri3DAnalyst) A container for the display and manipulation of data.
SelectionEventsListener (esriSystemUtility) Helper coclass to provide ISelectionEvents support to the C++ API.
SimpleElementSelection Simple selection object. Implements drawing and selecting but not clipboard support.
StandaloneTable A standalone table.

Remarks

Use this interface to be notified when the selection changes. This event is fired by the Map coclass and can be listened to by implementing ISelectionEvents.

As of ArcGIS 9.2, when a selection is changed, more than one ISelectionEvents::SelectionChanged event occurs.  Because of this, the event handler for ISelectionEvents::SelectionChanged should check to be sure that the SelectionSet of a given interface is valid before continuing.  This will prevent errors caused by accessing a SelectionSet before it is assigned a new value.