ParagraphFormat Constructor
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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();Public Sub New()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);Public Sub New(alignment As HorizontalAlignment)| Parameter | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| alignment | Specifies one of the HorizontalAlignment values. The following values are possible:
|
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;Dim paragraphFormat As New ParagraphFormat()
paragraphFormat.AbsoluteLineSpacing = 720