Lines Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }ReadOnly Property Lines As LineCollectionExamples
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);
}Dim formattedSelection As Selection = iFormattedText.Selection
formattedSelection.Bold = True
iFormattedText.Selection = formattedSelection
For Each line As Line In iFormattedText.Lines
Console.WriteLine(line.Baseline)
NextLimitations
Read only.