Gets or sets the style's paragraph attributes. The property's value is an object of the type ParagraphFormat.

Syntax

public ParagraphFormat ParagraphFormat { get; set; }
Public Property ParagraphFormat() As ParagraphFormat

Examples

The following example uses the ParagraphFormat property and sets its value to Center.

textControl1.Text = "TX Text Control";

TXTextControl.ParagraphStyle par = new TXTextControl.ParagraphStyle("CenterBold");

par.Bold = true;
par.ParagraphFormat.Alignment = TXTextControl.HorizontalAlignment.Center;

textControl1.ParagraphStyles.Add(par);
textControl1.Select(0,0);
textControl1.Selection.FormattingStyle = "CenterBold";
TextControl1.Text = "TX Text Control"

Dim par As TXTextControl.ParagraphStyle = New TXTextControl.ParagraphStyle("CenterBold")

par.Bold = True
par.ParagraphFormat.Alignment = TXTextControl.HorizontalAlignment.Center

TextControl1.ParagraphStyles.Add(par)
TextControl1.Select(0, 0)
TextControl1.Selection.FormattingStyle = "CenterBold"