Partager via


IVsLiteTree.InsertItems Method

Insert items without performing realignment.

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

Syntax

'Declaration
Function InsertItems ( _
    pNode As IVsLiteTreeList, _
    iAfter As UInteger, _
    Count As UInteger _
) As Integer
int InsertItems(
    IVsLiteTreeList pNode,
    uint iAfter,
    uint Count
)
int InsertItems(
    [InAttribute] IVsLiteTreeList^ pNode, 
    [InAttribute] unsigned int iAfter, 
    [InAttribute] unsigned int Count
)
abstract InsertItems : 
        pNode:IVsLiteTreeList * 
        iAfter:uint32 * 
        Count:uint32 -> int
function InsertItems(
    pNode : IVsLiteTreeList, 
    iAfter : uint, 
    Count : uint
) : int

Parameters

  • iAfter
    Type: UInt32

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

  • Count
    Type: UInt32

    [In] Integer containing the count of nodes inserted.

Return Value

Type: Int32
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
);

.NET Framework Security

See Also

Reference

IVsLiteTree Interface

Microsoft.VisualStudio.Shell.Interop Namespace