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

‘선언
Function GetOffsetFromParent ( _
    ParentAbsIndex As UInteger, _
    RelIndex As UInteger, _
    <OutAttribute> ByRef pOffset As UInteger _
) As Integer
‘사용 방법
Dim instance As IVsLiteTree
Dim ParentAbsIndex As UInteger
Dim RelIndex As UInteger
Dim pOffset As UInteger
Dim returnValue As Integer

returnValue = instance.GetOffsetFromParent(ParentAbsIndex, _
    RelIndex, pOffset)
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: System.UInt32
    [in] Integer containing the absolute index of the parent.
  • RelIndex
    Type: System.UInt32
    [in] Integer containing the relative index of a node in the tree list.
  • pOffset
    Type: System.UInt32%
    [out] Pointer to an integer containing the offset.

Return Value

Type: System.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

IVsLiteTree Members

Microsoft.VisualStudio.Shell.Interop Namespace