LanguageServer.GetPosition(String, 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.
Get the position offset (starts with 0) in Expression from line/character (starts with 0) e.g. "123", line:0, char:1 => 1.
protected int GetPosition(string expression, int line, int character);
member this.GetPosition : string * int * int -> int
Protected Function GetPosition (expression As String, line As Integer, character As Integer) As Integer
Parameters
- expression
- String
- line
- Int32
- character
- Int32