IVsTextLayer.BaseLineIndexToLocal(Int32, Int32, Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts base line coordinates to local coordinates.
public:
int BaseLineIndexToLocal(int iBaseLine, int iBaseIndex, [Runtime::InteropServices::Out] int % piLocalLine, [Runtime::InteropServices::Out] int % piLocalIndex);
int BaseLineIndexToLocal(int iBaseLine, int iBaseIndex, [Runtime::InteropServices::Out] int & piLocalLine, [Runtime::InteropServices::Out] int & piLocalIndex);
public int BaseLineIndexToLocal (int iBaseLine, int iBaseIndex, out int piLocalLine, out int piLocalIndex);
abstract member BaseLineIndexToLocal : int * int * int * int -> int
Public Function BaseLineIndexToLocal (iBaseLine As Integer, iBaseIndex As Integer, ByRef piLocalLine As Integer, ByRef piLocalIndex As Integer) As Integer
Parameters
- iBaseLine
- Int32
[in] The base line.
- iBaseIndex
- Int32
[in] The base line character index.
- piLocalLine
- Int32
[out] The local line.
- piLocalIndex
- Int32
[out] The local line character index.
Returns
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.
Remarks
COM Signature
From textmgr.idl:
HRESULT IVsTextLayer::BaseLineIndexToLocal(
[in] long iBaseLine,
[in] CharIndex iBaseIndex,
[out] long *piLocalLine,
[out] CharIndex *piLocalIndex
);