SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Defines the current item (caret location).
Deprecated - Provided for compatibility with earlier versions only - Use Items.Current instead
Get
VB.NET | ItemIndex = object.ListIndex As Integer |
VB | ItemIndex = object.ListIndex As Long |
C#.NET | int ItemIndex = object.ListIndex; |
VC++ | long ItemIndex = object->ListIndex; long ItemIndex = object->GetListIndex(); |
C | HRESULT object->get_ListIndex(long* ItemIndex); |
Put
VB.NET | object.ListIndex = ItemIndex As Integer |
VB | object.ListIndex = ItemIndex As Long |
C#.NET | int object.ListIndex = ItemIndex; |
VC++ | long object->ListIndex = ItemIndex; void object->PutListIndex(long ItemIndex); |
C | HRESULT object->put_ListIndex(long ItemIndex); |
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