共用方式為


IVsLiteTreeList.GetExpandedList Method

Expands a tree list node.

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

Syntax

'Declaration
Function GetExpandedList ( _
    index As UInteger, _
    <OutAttribute> ByRef pfCanRecurse As Integer, _
    <OutAttribute> ByRef pptlNode As IVsLiteTreeList _
) As Integer
int GetExpandedList(
    uint index,
    out int pfCanRecurse,
    out IVsLiteTreeList pptlNode
)
int GetExpandedList(
    [InAttribute] unsigned int index, 
    [OutAttribute] int% pfCanRecurse, 
    [OutAttribute] IVsLiteTreeList^% pptlNode
)
abstract GetExpandedList : 
        index:uint32 * 
        pfCanRecurse:int byref * 
        pptlNode:IVsLiteTreeList byref -> int
function GetExpandedList(
    index : uint, 
    pfCanRecurse : int, 
    pptlNode : IVsLiteTreeList
) : int

Parameters

  • index
    Type: UInt32

    [in] Specifies the index of the child node of the current tree list to be expanded.

  • pfCanRecurse
    Type: Int32%

    [out] Pointer to a flag indicating that the tree list can recurse.

Return Value

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsLiteTreeList::GetExpandedList(
   [in] ULONG Index,
   [out] BOOL *pfCanRecurse,
   [out] IVsLiteTreeList **pptlNode
);

On successful return, the tree list node will be expanded in the object browser window, showing all child nodes. This is one of two available mechanisms for expanding a list. The preferred mechanism is GetCategoryField.

.NET Framework Security

See Also

Reference

IVsLiteTreeList Interface

Microsoft.VisualStudio.Shell.Interop Namespace