Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

RemoveItem Method, SftTree Object

Removes an item.

Deprecated - Provided for compatibility with earlier versions only - Use Items.Remove instead

Syntax

VB.NETCount = object.RemoveItem(ByVal ItemIndex As Integer) As Integer
VBCount = object.RemoveItem(ByVal ItemIndex As Long) As Long
C#.NETint Count = object.RemoveItem(int ItemIndex);
VC++long Count = object->RemoveItem(long ItemIndex);
CHRESULT object->raw_RemoveItem(long ItemIndex, long* Count);

object

A SftTree 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.

Comments

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


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.


Spring Break!

Our offices will be closed this week (March 18 through March 22).

We'll be back March 24 to address any pending sales and support issues.