TX Text Control .NET for Windows Forms

Paragraphs Property

Property|Introduced in 15.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets a collection of all paragraphs contained in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property's value is an object of the type ParagraphCollection.

Syntax

public ParagraphCollection Paragraphs { get; }

Examples

The following example iterates through the paragraphs collection and processes each paragraph.

foreach (Paragraph paragraph in textControl.Paragraphs)
{
    Console.WriteLine(paragraph.FormattingStyle);
}

Limitations

Read only.