TX Text Control .NET for Windows Forms

StartLine 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 (one-based) of the paragraph's first line.

Syntax

public int StartLine { get; }

Examples

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

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

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

Limitations

Read only.