TX Text Control .NET for WPF

ParagraphFormat Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the formatting attributes of the selected paragraphs. The property's value is an object of the type ParagraphFormat.

Syntax

public ParagraphFormat ParagraphFormat { get; set; }

Examples

The following example formats the heading of a short document by using Selection.ParagraphFormat.

textControl.Text = "Quarterly results\nRevenue increased by 12%.";
textControl.Select(0, 17);
Selection selection = textControl.Selection;

selection.ParagraphFormat = new ParagraphFormat();
if (selection.ParagraphFormat != null)
{
    Console.WriteLine("Selection: Paragraph Format is available.");
}

Limitations

Runtime only.

Further Reading

  • Inserting and Printing Folding Marks Using TX Text Control –