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


IToolbarControlEvents.OnItemClick Event (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Controls)  

IToolbarControlEvents.OnItemClick Event

Fires after an item on the ToolbarControl is pressed.

[Visual Basic .NET]
Public Event OnItemClick As OnItemClickEventHandler
[C#]
public event OnItemClickEventHandler OnItemClick
[C++]
HRESULT OnItemClick(
  long index
);
[C++]

Parameters index [in] index is a parameter of type long

Product Availability

Available with ArcGIS Engine.

Description

The OnItemClick event is triggered when the user presses the left mouse button on a ToolbarControl item. If the item is disabled the event is not triggered.

index specifies the index value of the item pressed.

Remarks

The event sequence is as follows:

OnMouseDown
OnMouseUp
OnItemClick

See Also

IToolbarControlEvents Interface