Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

RemoveChildren Method, ItemClass Class

Removes the item's dependents.

Class: ItemClass
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public void RemoveChildren();
Public Sub RemoveChildren()

Comments

Removes the item's dependents.

By deleting the item's dependents, the item becomes a leaf item which can no longer be expanded or collapsed. It is not an error to use the RemoveChildren method if an item doesn't have any dependents. The item itself is not deleted. To delete an item and all its dependents, the Remove method can be used.

This method can only be used for items in the item area.

If many items have to be deleted, the SoftelvdmUserControl.Initializing property can be used to indicate a mass-update, which is significantly faster.

See Also ItemClass Class | Classes | SftTree/NET 2.0



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.