TX Text Control .NET Server

Number Property

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

Description

Gets the line's number. The first line has the number 1.

Syntax

public int Number { get; }

Examples

The following example examines the first line in a short document by using Line.Number.

textControl.Text = "Quarterly results\nRevenue increased by 12%.";
Line line = textControl.Lines[1];

Console.WriteLine($"Number: {line.Number}");
Console.WriteLine("Line is ready for use.");

Limitations

Read only.