Freigeben über


IVsTextLayer.LocalLineIndexToBase(Int32, Int32, Int32, Int32) Method

Definition

Converts local line coordinates to base coordinates.

public:
 int LocalLineIndexToBase(int iLocalLine, int iLocalIndex, [Runtime::InteropServices::Out] int % piBaseLine, [Runtime::InteropServices::Out] int % piBaseIndex);
int LocalLineIndexToBase(int iLocalLine, int iLocalIndex, [Runtime::InteropServices::Out] int & piBaseLine, [Runtime::InteropServices::Out] int & piBaseIndex);
public int LocalLineIndexToBase (int iLocalLine, int iLocalIndex, out int piBaseLine, out int piBaseIndex);
abstract member LocalLineIndexToBase : int * int * int * int -> int
Public Function LocalLineIndexToBase (iLocalLine As Integer, iLocalIndex As Integer, ByRef piBaseLine As Integer, ByRef piBaseIndex As Integer) As Integer

Parameters

iLocalLine
Int32

[in] The local line.

iLocalIndex
Int32

[in] The local line character index.

piBaseLine
Int32

[out] The base line.

piBaseIndex
Int32

[out] The base 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::LocalLineIndexToBase(  
   [in] long iLocalLine,  
   [in] CharIndex iLocalIndex,  
   [out] long *piBaseLine,  
   [out] CharIndex *piBaseIndex  
);  

Applies to