TX Text Control .NET for WPF

ParagraphFormat Constructor

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

Description

Creates a new instance of the ParagraphFormat class.

Syntax

ParagraphFormat()

Creates an empty ParagraphFormat object with all properties set to their default values.

public ParagraphFormat();

ParagraphFormat(HorizontalAlignment)

Creates a new ParagraphFormat object with the specified horizontal alignment. All other properties are set to their default values.

public ParagraphFormat(HorizontalAlignment alignment);
ParameterDescription
alignment

Specifies one of the HorizontalAlignment values. The following values are possible:

ValueMeaning
CenterText is centered.
JustifyText is fully justified.
LeftText is left aligned.
RightText is right aligned.

Examples

The following example creates a Paragraph Format instance and configures its absolute line spacing setting for a document workflow.

ParagraphFormat paragraphFormat = new();
paragraphFormat.AbsoluteLineSpacing = 720;