Export (0) Print
Expand All

IVsLiteTree.InsertItems Method

Insert items without performing realignment.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

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

Parameters

pNode

[In] Pointer to the IVsLiteTreeList to modify. Using -1 indicates starting at the beginning of the list.

iAfter

[In] Integer index of the after which to insert the new node.

Count

[In] Integer containing the count of nodes inserted.

Return Value

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

Use sparingly to adjust an existing node—don't add a 0 child node and then insert multiple items.

COM Signature

[C++]

From vsshell.idl:

HRESULT IVsLiteTree::InsertItems(
   [in] IVsLiteTreeList *pNode, 
   [in] ULONG iAfter, 
   [in] ULONG Count
);

Community Additions

ADD
Show:
© 2014 Microsoft