TXTextControl.ParagraphFormat.Alignment Property

Gets or sets the horizontal text alignment.


public HorizontalAlignment Alignment { get; set; }
[Visual Basic]
Public Property Alignment() As HorizontalAlignment
Value Description
Left Text is left aligned.
Right Text is right aligned.
Center Text is centered.
Justify Text is justified.


The property's default value is HorizontalAlignment.Left.

The property returns its default value when the text selection contains multiple paragraphs with mixed alignment. The Selection.IsCommonValueSelected method can be used to check for mixed attributes.

See Also