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


IMapControlEvents2 Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IM > IMapControlEvents2 Interface
ArcGIS Developer Help

IMapControlEvents2 Interface

Provides access to events that occur with interaction to the MapControl.

Product Availability

Available with ArcGIS Engine.

Description

This is the main events interface for the MapControl. Generally there is no need to explicitly set event handlers, as most development environments will automatically provide event handlers.

Members

Name Description
Method OnAfterDraw Fires after the Map draws a specified view phase.
Method OnAfterScreenDraw Fires after the Map contained by the MapControl has finished drawing.
Method OnBeforeScreenDraw Fires before the Map contained by the MapControl starts to draw.
Method OnDoubleClick Fires when the user presses and releases the mouse button twice in quick succession.
Method OnExtentUpdated Fires after the extent (visible bounds) of the MapControl is changed.
Method OnFullExtentUpdated Fires after the full extent (bounds) of the MapControl has changed.
Method OnKeyDown Fires after a key is pressed on the keyboard.
Method OnKeyUp Fires after a pressed key is released.
Method OnMapReplaced Fires after the Map contained by the MapControl has been replaced.
Method OnMouseDown Fires when the user presses any mouse button while over the MapControl.
Method OnMouseMove Fires when the user moves the mouse over the MapControl.
Method OnMouseUp Fires when the user releases a mouse button while over the MapControl.
Method OnOleDrop Fires when an OLE drop action occurs on the MapControl.
Method OnSelectionChanged Fires when the current selection changes.
Method OnViewRefreshed Fires when the view is refreshed before drawing occurs.

Classes that implement IMapControlEvents2

Classes Description
MapControl Esri MapControl
MapControlEvents2Listener (esriSystemUtility) Helper coclass to provide IMapControlEvents2 support to the C++ API.