com.esri.arcgis.carto
Interface ISelectionEvents

All Superinterfaces:
EventListener, Serializable
All Known Implementing Classes:
Globe, ISelectionEventsAdapter, Map, PageLayout, Scene

public interface ISelectionEvents
extends EventListener, Serializable

Provides access to events that occur when the selection changes.

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.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux


Method Summary
 void selectionChanged(ISelectionEventsSelectionChangedEvent theEvent)
          Call this function to fire the selection changed event.
 

Method Detail

selectionChanged

void selectionChanged(ISelectionEventsSelectionChangedEvent theEvent)
                      throws IOException,
                             AutomationException
Call this function to fire the selection changed event.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
theEvent - The event
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.