Freigeben über


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
'Usage
Dim instance As IVsLiteTree
Dim pNode As IVsLiteTreeList
Dim iAfter As UInteger
Dim Count As UInteger
Dim returnValue As Integer

returnValue = instance.InsertItems(pNode, _
    iAfter, Count)
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: 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.

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

IVsLiteTree Members

Microsoft.VisualStudio.Shell.Interop Namespace