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


ITOCControlEvents Interface (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Controls)  

ITOCControlEvents Interface

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

Product Availability

Available with ArcGIS Engine.

Description

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

Members

Description
Event OnBeginLabelEdit Fires when label editing begins.
Event OnDoubleClick Fires when the user presses and releases the mouse button twice in quick succession.
Event OnEndLabelEdit Fires when label editing ends.
Event OnKeyDown Fires after a key is pressed on the keyboard.
Event OnKeyUp Fires after a pressed key is released.
Event OnMouseDown Fires when the user presses any mouse button while over the TOCControl.
Event OnMouseMove Fires when the user moves the mouse pointer over the TOCControl.
Event OnMouseUp Fires when the user releases a mouse button while over the TOCControl.

CoClasses that implement ITOCControlEvents

CoClasses and Classes Description
TOCControl Esri TOCControl
TOCControlEventsListener (esriSystemUtility) Helper coclass to provide ITOCControlEvents support to the C++ API.