IVsTextLayer::BaseLineIndexToLocal Method (Int32, Int32, Int32, Int32)

 

Converts base line coordinates to local coordinates.

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

int BaseLineIndexToLocal(
	int iBaseLine,
	int iBaseIndex,
	[OutAttribute] int% piLocalLine,
	[OutAttribute] int% piLocalIndex
)

Parameters

iBaseLine
Type: System::Int32

[in] The base line.

iBaseIndex
Type: System::Int32

[in] The base line character index.

piLocalLine
Type: System::Int32

[out] The local line.

piLocalIndex
Type: System::Int32

[out] The local line character index.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code. The method returns VIEW_E_LOCATION_HIDDEN indicating that the coordinates you requested exist, but are hidden in the UI at present. The method returns E_INVALIDARG to indicate bad input parameters.

From textmgr.idl:

HRESULT IVsTextLayer::BaseLineIndexToLocal(
   [in] long iBaseLine,
   [in] CharIndex iBaseIndex,
   [out] long *piLocalLine,
   [out] CharIndex *piLocalIndex
);
Return to top
Show: