Removes the item's dependents.
Class: ItemClass
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public void RemoveChildren();Public Sub RemoveChildren()
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