TX Text Control .NET for Windows Forms

Lines Property

Property|Introduced in 15.0
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 lines the paragraph consists of.

Syntax

public int Lines { get; }

Examples

The following example examines the first paragraph in a short document by using Paragraph.Lines.

textControl.Text = "Quarterly results\nRevenue increased by 12%.";
Paragraph paragraph = textControl.Paragraphs[1];

Console.WriteLine($"Lines: {paragraph.Lines}");
Console.WriteLine("Paragraph is ready for use.");

Limitations

Read only.