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
Removes an item.
Deprecated - Provided for compatibility with earlier versions only - Use Items.Remove instead
VB.NET | Count = object.RemoveItem(ByVal ItemIndex As Integer) As Integer |
VB | Count = object.RemoveItem(ByVal ItemIndex As Long) As Long |
C#.NET | int Count = object.RemoveItem(int ItemIndex); |
VC++ | long Count = object->RemoveItem(long ItemIndex); |
C | HRESULT object->raw_RemoveItem(long ItemIndex, long* Count); |
object
ItemIndex
The zero-based index of the item to remove.
Count
Returns the number of items remaining in the tree control after the specified item is deleted.
Deprecated - Provided for compatibility with earlier versions only - Use Items.Remove instead
The RemoveItem method removes an item.
If a parent item is deleted, dependents are deleted if the parent item is collapsed (dependents are not visible). If the parent item is expanded when it is deleted, its dependents are not deleted. The Item.Expanded property can be used to determine if an item is expanded. The Item.DeleteDependents method can be used to delete an item's dependents.
If many items have to be deleted, the BulkUpdate property can be used to indicate a mass-update, which is significantly faster.
See Also SftTree Object | Object Hierarchy