TX Text Control .NET for WPF

Select Method

Method|Introduced in 15.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Selects the paragraph. The paragraph break characters bounding the paragraph are not selected.

Syntax

public void Select();

Examples

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

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

paragraph.Select();
Console.WriteLine("Paragraph is ready for use.");