Compartilhar via


LinePosition(Int32, Int32) Constructor

Definition

Initializes a new instance of a LinePosition with the given line and character.

public:
 LinePosition(int line, int character);
public LinePosition (int line, int character);
new Microsoft.CodeAnalysis.Text.LinePosition : int * int -> Microsoft.CodeAnalysis.Text.LinePosition
Public Sub New (line As Integer, character As Integer)

Parameters

line
Int32

The line of the line position. The first line in a file is defined as line 0 (zero based line numbering).

character
Int32

The character position in the line.

Exceptions

line or character is less than zero.

Applies to