Freigeben über


IVsLiteTreeList.LocateExpandedList Method

Returns a pointer to an index number of the specified tree list

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

Syntax

'Declaration
Function LocateExpandedList ( _
    ExpandedList As IVsLiteTreeList, _
    <OutAttribute> ByRef iIndex As UInteger _
) As Integer
'Usage
Dim instance As IVsLiteTreeList
Dim ExpandedList As IVsLiteTreeList
Dim iIndex As UInteger
Dim returnValue As Integer

returnValue = instance.LocateExpandedList(ExpandedList, _
    iIndex)
int LocateExpandedList(
    IVsLiteTreeList ExpandedList,
    out uint iIndex
)
int LocateExpandedList(
    [InAttribute] IVsLiteTreeList^ ExpandedList, 
    [OutAttribute] unsigned int% iIndex
)
abstract LocateExpandedList : 
        ExpandedList:IVsLiteTreeList * 
        iIndex:uint32 byref -> int 
function LocateExpandedList(
    ExpandedList : IVsLiteTreeList, 
    iIndex : uint
) : int

Parameters

  • iIndex
    Type: System.UInt32%
    [out] Pointer to an integer containing the index of the specified tree list.

Return Value

Type: System.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::LocateExpandedList(
   [in] IVsLiteTreeList* ExpandedList,
   [out] ULONG *iIndex
);

The environment calls this method during a ReAlign command if the node's TF_NORELOCATE attribute is not set, as determined by a call to GetFlags. If the list cannot be located, ExpandedList will be discarded.

.NET Framework Security

See Also

Reference

IVsLiteTreeList Interface

IVsLiteTreeList Members

Microsoft.VisualStudio.Shell.Interop Namespace