Defines the current item (caret location).
Deprecated - Provided for compatibility with earlier versions only - Use Items.Current instead
Get
| C# | int ItemIndex = object.ListIndex; |
| VB.NET | ItemIndex = object.ListIndex As Integer |
| C++ | long ItemIndex = object->ListIndex; long ItemIndex = object->GetListIndex(); |
| C | HRESULT object->get_ListIndex(long* ItemIndex); |
| VB | ItemIndex = object.ListIndex As Long |
Put
| C# | int object.ListIndex = ItemIndex; |
| VB.NET | object.ListIndex = ItemIndex As Integer |
| C++ | long object->ListIndex = ItemIndex; void object->PutListIndex(long ItemIndex); |
| C | HRESULT object->put_ListIndex(long ItemIndex); |
| VB | object.ListIndex = ItemIndex As Long |
object
ItemIndex
Defines the current item (caret location).
Deprecated - Provided for compatibility with earlier versions only - Use Items.Current instead
The ListIndex property defines the current item (caret location).
The ListIndex property describes the current item, which is the item that has the focus rectangle. This item is not necessarily also selected. The current item is described by the ListIndex property, the currently selected item is described by the Items.Selection property. These are not necessarily the same even in a single-selection tree control (see Items.NoSelection property).
If the tree control is empty, the ListIndex property returns -1. An application must set the property to a valid, existing item. It cannot set it to -1.
The focus rectangle can be hidden using the Items.ShowFocusRectangle property.
See Also SftTree Object | Object Hierarchy