LinePosition(Int32, Int32) Constructor
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.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.