TX Text Control .NET Server

Lines Property

Property|Introduced in 16.0
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 a collection of all lines the text in the text part consists of. The property value is an object of the type LineCollection.

Syntax

LineCollection Lines { get; }

Examples

The following example applies bold formatting through the iformatted text's selection by using IFormattedText.Lines.

Selection formattedSelection = iFormattedText.Selection;
formattedSelection.Bold = true;
iFormattedText.Selection = formattedSelection;

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

Limitations

Read only.