Compartir a través de


Source.GetPositionOfLineIndex(Int32, Int32) Method

Definition

Gets the position corresponding to the given line and character offset location.

public:
 int GetPositionOfLineIndex(int line, int col);
public:
 int GetPositionOfLineIndex(int line, int col);
int GetPositionOfLineIndex(int line, int col);
public int GetPositionOfLineIndex (int line, int col);
member this.GetPositionOfLineIndex : int * int -> int
Public Function GetPositionOfLineIndex (line As Integer, col As Integer) As Integer

Parameters

line
Int32

The line number of the location.

col
Int32

The offset on the line of the location.

Returns

The position or character offset from the start of the source file.

Remarks

This method forwards the call to the GetPositionOfLineIndex method on the IVsTextLines object passed to the Source class constructor. An exception is thrown if an error occurs.

Applies to