Gets the line's baseline position. The value is given in twips with an origin at the upper left corner of the document. The relationship between the upper left corner of the document and the upper left corner of the visible portion of the document can be obtained with the TextControl.ScrollLocation property.

Syntax

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

Examples

The following example shows how to read a 'TXTextControl.Line'´s baseline position of all 'Lines' in a TXTextControl.

textControl1.Text = "Line 1\nLine 2\nLine 3";

foreach (TXTextControl.Line _line in textControl1.Lines) {
            System.Console.WriteLine(_line.Baseline.ToString());
        }
TextControl1.Text = "Line 1" & vbLf & "Line 2" & vbLf & "Line 3"

For Each _line As TXTextControl.Line In TextControl1.Lines
    System.Console.WriteLine(_line.Baseline.ToString())
Next

Limitations

Read only.