다음을 통해 공유


LanguageServer.GetPosition(String, Int32, Int32) Method

Definition

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

Returns

Applies to