Gets the number of characters in the line including the break character.

Syntax

public int Length { get; }
Public ReadOnly Property Length() As Integer

Examples

The following example uses the Length property to get the number of characters in the line including the break character.

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 
    + "number of characters in the line" + line.Length.ToString());
}
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 + _
    "number of characters in the line" + line.Length.ToString())
Next

Limitations

Read only.