IVsLiteTree::InsertItems Method (IVsLiteTreeList^, UInt32, UInt32)

 

Insert items without performing realignment.

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

int InsertItems(
	IVsLiteTreeList^ pNode,
	unsigned int iAfter,
	unsigned int Count
)

Parameters

pNode
Type: Microsoft.VisualStudio.Shell.Interop::IVsLiteTreeList^

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

iAfter
Type: System::UInt32

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

Count
Type: System::UInt32

[In] Integer containing the count of nodes inserted.

Return Value

Type: System::Int32

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.

[C++]

From vsshell.idl:

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