Source.GetPositionOfLineIndex(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.
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.