TX Text Control .NET for Windows Forms

Length 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 number of characters in the line including the break character.

Syntax

public int Length { get; }

Examples

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

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

textControl.Select(line.Start, line.Length);
Console.WriteLine("Line is ready for use.");

Limitations

Read only.