This documentation is archived and is not being maintained.

IVsLiteTree.DeleteItems Method

Used to delete specific items without realigning the tree by calling ReAlign.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in

int DeleteItems (
	[InAttribute] IVsLiteTreeList pNode,
	[InAttribute] uint iStart,
	[InAttribute] uint Count
int DeleteItems (
	/** @attribute InAttribute() */ IVsLiteTreeList pNode, 
	/** @attribute InAttribute() */ UInt32 iStart, 
	/** @attribute InAttribute() */ UInt32 Count
function DeleteItems (
	pNode : IVsLiteTreeList, 
	iStart : uint, 
	Count : uint
) : int



[in] Pointer to the IVsLiteTreeList to delete items from.


[in] Index of the item where the deletion begins.


[in] Number of items to delete.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.


From vsshell.idl:

HRESULT IVsLiteTree::DeleteItems(
   [in] IVsLiteTreeList *pNode,
   [in] ULONG iStart,
   [in] ULONG Count