| Visual Basic (Declaration) | |
|---|---|
Public Property ItemIndex As Integer | |
| C# | |
|---|---|
public int ItemIndex {get; set;} | |
Property Value
IntegerThe e.ItemIndex will return a -1 if the mouse is over the control but not an item in the control, otherwise it will return the 0-based index of the item. Also note that the HighlightType Property will affect where the e.ItemIndex will return a -1. If the HighlightType is Text then the e.ItemIndex will be -1 if the mouse isn't over the text portion of the item.