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


ITOCControlEvents Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IT > ITOCControlEvents Interface (ArcObjects .NET 10.6 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

Name Description
Method OnBeginLabelEdit Fires when label editing begins.
Method OnDoubleClick Fires when the user presses and releases the mouse button twice in quick succession.
Method OnEndLabelEdit Fires when label editing ends.
Method OnKeyDown Fires after a key is pressed on the keyboard.
Method OnKeyUp Fires after a pressed key is released.
Method OnMouseDown Fires when the user presses any mouse button while over the TOCControl.
Method OnMouseMove Fires when the user moves the mouse pointer over the TOCControl.
Method 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.