다음을 통해 공유


IVsLiteTree.GetOffsetFromParent Method

Returns the offset between the index of a parent node and a relative index.

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

Syntax

'Declaration
Function GetOffsetFromParent ( _
    ParentAbsIndex As UInteger, _
    RelIndex As UInteger, _
    <OutAttribute> ByRef pOffset As UInteger _
) As Integer
int GetOffsetFromParent(
    uint ParentAbsIndex,
    uint RelIndex,
    out uint pOffset
)
int GetOffsetFromParent(
    [InAttribute] unsigned int ParentAbsIndex, 
    [InAttribute] unsigned int RelIndex, 
    [OutAttribute] unsigned int% pOffset
)
abstract GetOffsetFromParent : 
        ParentAbsIndex:uint32 * 
        RelIndex:uint32 * 
        pOffset:uint32 byref -> int
function GetOffsetFromParent(
    ParentAbsIndex : uint, 
    RelIndex : uint, 
    pOffset : uint
) : int

Parameters

  • ParentAbsIndex
    Type: UInt32

    [in] Integer containing the absolute index of the parent.

  • RelIndex
    Type: UInt32

    [in] Integer containing the relative index of a node in the tree list.

  • pOffset
    Type: UInt32%

    [out] Pointer to an integer containing the offset.

Return Value

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

Remarks

COM Signature

[C++]

From vsshell.idl:

HRESULT IVsLiteTree::GetOffsetFromParent(
   [in] ULONG ParentAbsIndex, 
   [in] ULONG RelIndex, 
   [out] ULONG *pOffset
);

.NET Framework Security

See Also

Reference

IVsLiteTree Interface

Microsoft.VisualStudio.Shell.Interop Namespace