Gets the line number of the current text input position. The first line on top of the page is 1.


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


This example explains an easy use of the 'TXTextControl.InputPosition.Line' property. Here, the 'Line' number is stored in a variable of the type 'int'.

int currentLine = textControl1.InputPosition.Line;
Dim currentLine As Integer = TextControl1.InputPosition.Line


Read only.