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


IMultiItem.OnItemClick Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (SystemUI)  

IMultiItem.OnItemClick Method

Occurs when the item at the specified index is clicked.

[Visual Basic .NET]
Public Sub OnItemClick ( _
    ByVal index As Integer _
)
[C#]
public void OnItemClick (
    int index
);
[C++]
HRESULT OnItemClick(
  long index
);
[C++]

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

Product Availability

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

Description

Index specifies the index of the item in the multiItem that was clicked. An Index of -1 means that no item was clicked.

Remarks

When implementing IMultiItem to create a custom multiItem, write code in the OnItemClick method to perform the action when an item in the multiItem is clicked. The index number of the clicked item is passed into this function. If no item was clicked, -1 is passed into this function.

See Also

IMultiItem Interface