Line Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
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; }Public ReadOnly Property Line As IntegerExamples
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.");textControl.Text = "Project summary"
Dim inputPosition As InputPosition = textControl.InputPosition
Console.WriteLine($"Line: {inputPosition.Line}")
Console.WriteLine("Input Position is ready for use.")Limitations
Read only.