Limitations
Read only.
Gets the number (one-based) of the first character in the line.
public int Start { get; }
Public ReadOnly Property Start() As Integer
The following example uses the Start property to get the number (one-based) of the first character in the line.
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.