TX Text Control .NET for Windows Forms

ParagraphStyles Property

Property|Introduced in 10.1
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 paragraph styles the current document contains. The property's value is an object of the type ParagraphStyleCollection.

Syntax

public ParagraphStyleCollection ParagraphStyles { get; }

Examples

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

foreach (ParagraphStyle paragraphStyle in textControl.ParagraphStyles)
{
    paragraphStyle.Name = "CustomerName";
}

Limitations

Runtime only.

Read only.