TX Text Control .NET for Windows Forms

Lines Property

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

Description

Gets a collection of all lines contained in the main text of the document. The property value is an object of the type LineCollection.

Syntax

public LineCollection Lines { get; }

Examples

The following example iterates through the lines collection and processes each line.

foreach (Line line in textControl.Lines)
{
    Console.WriteLine(line.Baseline);
}

Limitations

Read only.