This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > SystemUI > ESRI.ArcGIS.SystemUI > Interfaces > IM > IMultiItem Interface > IMultiItem.OnItemClick Method (ArcObjects .NET 10.5 SDK) |
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
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.