TX Text Control .NET for Windows Forms

Format 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 or sets the paragraph's formatting attributes. The property's value is an object of the type ParagraphFormat.

Syntax

public ParagraphFormat Format { get; set; }

Examples

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

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

paragraph.Format = new ParagraphFormat();
paragraph.Select();