| Visual Basic (Declaration) | |
|---|---|
Public Event ItemOver As dbiExplorerBar.EventItemOverHandle | |
| C# | |
|---|---|
public event dbiExplorerBar.EventItemOverHandle ItemOver | |
The event handler receives an argument of type ItemOverEventArgs containing data related to this event. The following ItemOverEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| ItemIndex | Returns the current ListItem under the mouse pointer. |
| ListBarIndex | Returns the current ListBarIndex under the mouse pointer. |
| ListIndex | Returns the current ListIndex under the mouse pointer. |
The 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.
Likewise with the e.ListIndex, if the mouse is over the control but not over a list title or valid list item the e.ListIndex will return a -1. Otherwise, the e.ListIndex will return the 0-based index value of the List under the mouse.