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

IMultiItem.OnItemClick Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > SystemUI > ESRI.ArcGIS.SystemUI > Interfaces > IM > IMultiItem Interface > IMultiItem.OnItemClick Method
ArcGIS Developer Help

IMultiItem.OnItemClick Method

Occurs when the item at the specified index is clicked.

[Visual Basic .NET]
Public Sub OnItemClick ( _
    ByVal index As Integer _
public void OnItemClick (
    int index
HRESULT OnItemClick(
  long index
index [in]

index is a parameter of type long

Product Availability

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


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


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