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
Returns the item index given an item ID.
Deprecated - Provided for compatibility with earlier versions only - Use Items.ItemIndex instead
Get
VB.NET | ItemIndex = object.get_ItemIndex(ByVal ID As Integer) As Integer |
VB | ItemIndex = object.ItemIndex(ByVal ID As Long) As Long |
C#.NET | int ItemIndex = object.get_ItemIndex(int ID); |
VC++ | long ItemIndex = object->ItemIndex[long ID]; long ItemIndex = object->GetItemIndex(long ID); |
C | HRESULT object->get_ItemIndex(long ID, long* ItemIndex); |
object
ID
The item ID of the item whose index is to be returned.
ItemIndex
Returns the item index given an item ID. -1 is returned if no item has a matching ID.
Deprecated - Provided for compatibility with earlier versions only - Use Items.ItemIndex instead
The ItemIndex property returns the item index given an item ID.
The item ID returned by the Item.ID (or ItemID) property does not change throughout the lifetime of an item. Even if an item changes its index position because other items are deleted or inserted, the item ID remains constant. The item index describes the zero-based position of an item in a tree control.
See Also SftTree Object | Object Hierarchy