IVsLiteTree::GetOffsetFromParent Method (UInt32, UInt32, UInt32)

 

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)

int GetOffsetFromParent(
	unsigned int ParentAbsIndex,
	unsigned int RelIndex,
	[OutAttribute] unsigned int% pOffset
)

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.

[C++]

From vsshell.idl:

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