Deletes an item's dependents.
|VB.NET||object.DeleteDependents(ByVal ItemIndex As Integer)|
|VB||object.DeleteDependents(ByVal ItemIndex As Long)|
|C#.NET||void object.DeleteDependents(int ItemIndex);|
|VC++||HRESULT object->DeleteDependents(long ItemIndex);|
|C||HRESULT object->raw_DeleteDependents(long ItemIndex);|
The zero-based index of the item, whose dependents are to be deleted.
The DeleteDependents method deletes an item's dependents.
By deleting an 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 DeleteDependents method if an item doesn't have any dependents. The item described by ItemIndex is not deleted. To delete an item, the Items.Remove method can be used.