TXTextControl.ParagraphFormat Constructor

Creates a new instance of the ParagraphFormat class.

ParagraphFormat()

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

[C#]
public ParagraphFormat();
[Visual Basic]
Public Class ParagraphFormat

ParagraphFormat(HorizontalAlignment)

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

[C#]
public ParagraphFormat(HorizontalAlignment alignment);
[Visual Basic]
Public Sub New(ByVal alignment As HorizontalAlignment)
Parameter Description
alignment

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


Value Meaning
Center Text is centered.
Justify Text is fully justified.
Left Text is left aligned.
Right Text is right aligned.

See Also