TX Text Control .NET for Windows Forms

Line Property

Property|Introduced in 10.1
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

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

Syntax

public int Line { get; }

Examples

The following example examines or changes the insertion point in a short document by using InputPosition.Line.

textControl.Text = "Project summary";
InputPosition inputPosition = textControl.InputPosition;

Console.WriteLine($"Line: {inputPosition.Line}");
Console.WriteLine("Input Position is ready for use.");

Limitations

Read only.