Compartilhar via


IVsLiteTree.InsertItems(IVsLiteTreeList, UInt32, UInt32) Method

Definition

Insert items without performing realignment.

public:
 int InsertItems(Microsoft::VisualStudio::Shell::Interop::IVsLiteTreeList ^ pNode, System::UInt32 iAfter, System::UInt32 Count);
public:
 int InsertItems(Microsoft::VisualStudio::Shell::Interop::IVsLiteTreeList ^ pNode, unsigned int iAfter, unsigned int Count);
int InsertItems(Microsoft::VisualStudio::Shell::Interop::IVsLiteTreeList const & pNode, unsigned int iAfter, unsigned int Count);
public int InsertItems (Microsoft.VisualStudio.Shell.Interop.IVsLiteTreeList pNode, uint iAfter, uint Count);
abstract member InsertItems : Microsoft.VisualStudio.Shell.Interop.IVsLiteTreeList * uint32 * uint32 -> int
Public Function InsertItems (pNode As IVsLiteTreeList, iAfter As UInteger, Count As UInteger) As Integer

Parameters

pNode
IVsLiteTreeList

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

iAfter
UInt32

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

Count
UInt32

[In] Integer containing the count of nodes inserted.

Returns

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

Remarks

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  
);  

Applies to