Compartilhar via


IVsLiteTreeList.GetExpandedList(UInt32, Int32, IVsLiteTreeList) Method

Definition

Expands a tree list node.

public:
 int GetExpandedList(System::UInt32 index, [Runtime::InteropServices::Out] int % pfCanRecurse, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsLiteTreeList ^ % pptlNode);
int GetExpandedList(unsigned int index, [Runtime::InteropServices::Out] int & pfCanRecurse, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsLiteTreeList const & & pptlNode);
public int GetExpandedList (uint index, out int pfCanRecurse, out Microsoft.VisualStudio.Shell.Interop.IVsLiteTreeList pptlNode);
abstract member GetExpandedList : uint32 * int * IVsLiteTreeList -> int
Public Function GetExpandedList (index As UInteger, ByRef pfCanRecurse As Integer, ByRef pptlNode As IVsLiteTreeList) As Integer

Parameters

index
UInt32

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

pfCanRecurse
Int32

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

pptlNode
IVsLiteTreeList

[out] Pointer to the selected node's IVsLiteTreeList interface.

Returns

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.

Applies to