This documentation is archived and is not being maintained.

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

int GetOffsetFromParent (
	[InAttribute] uint ParentAbsIndex,
	[InAttribute] uint RelIndex,
	out uint pOffset
int GetOffsetFromParent (
	/** @attribute InAttribute() */ UInt32 ParentAbsIndex, 
	/** @attribute InAttribute() */ UInt32 RelIndex, 
	/** @attribute OutAttribute() */ /** @ref */ UInt32 pOffset
JScript does not support passing value-type arguments by reference.



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


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


[out] Pointer to an integer containing the offset.

Return Value

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

COM Signature


From vsshell.idl:

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