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
'Usage
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.