Limitations
Read only.
Gets the line's number. The first line has the number 1.
public int Number { get; }
Public ReadOnly Property Number() As Integer
The following example uses the Number property to get the line number. The first line has the number 1.
textControl1.Text = "Line 1\nLine 2\nLine 3";
foreach (TXTextControl.Line line in textControl1.Lines)
{
Console.WriteLine("Line #" + line.Number.ToString() + " starts at: "
+ line.Start.ToString() + ". Text: " + line.Text);
}
TextControl1.Text = "Line 1" + vbCrLf + "Line 2" + vbCrLf + "Line 3"
For Each line As TXTextControl.Line In textControl1.Lines
Console.WriteLine("Line #" + line.Number.ToString() + "
starts at: " + _
line.Start.ToString() + ". Text: " + line.Text)
Next
Read only.