Skip to main content

ParagraphPropertiesBase.Alignment Property

Gets or sets the paragraph’s text alignment.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v23.2.Core.dll

NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation

Declaration

ParagraphAlignment? Alignment { get; set; }

Property Value

Type Description
Nullable<ParagraphAlignment>

A ParagraphAlignment enumeration value or null (Nothing in Visual Basic) for a mixture of paragraphs with different alignments.

Available values:

Name Description Example
Left

Text is aligned to the left of the paragraph.

alignment-left

Right

Text is aligned to the right of the paragraph.

alignment-right

Center

Text is aligned to the center of the paragraph.

alignment-center

Justify

Text is justified to the entire width of the paragraph.

alignment-justify

JustifyLow

If the language is Arabic, the paragraph uses small length Kashida. In other languages, text is justified with short inter-word spacing.

alignment-justify-low

JustifyMedium

If the language is Arabic, the paragraph uses medium-length Kashida. In other languages, text is justified with wider inter-word spacing.

alignment-justify-medium

JustifyHigh

If the text is Arabic, the paragraph uses the kashida with the widest length. For other languages, paragraph text is justified with the widest inter-word spacing.

alignment-justify-high

Distribute

The text is evenly distributed between right and left margins. If the last line is short, extra space is added between the characters so the line matches the paragraph’s width.

alignment-distribute

ThaiDistribute

Text is aligned between right and left margins by adding an extra space between each two characters. Affects languages with tone marks and vowel marks.

alignment-justify

Remarks

The Alignment property value depends on the RightToLeft property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Alignment property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also