Back to Devexpress

TdxRichEditParagraphAlignment Enum

vcl-dxrichedit-dot-nativeapi-14b402a5.md

latest3.3 KB
Original Source

TdxRichEditParagraphAlignment Enum

Enumerates available paragraph alignment options.

Declaration

delphi
TdxRichEditParagraphAlignment = (
    Left,
    Right,
    Center,
    Justify
);

Members

Name
Left
Right
Center
Justify

Remarks

Options include:

IconValueEnd-User CommandDescriptionExample
LeftToggleParagraphAlignmentLeftAligns all text lines in a paragraph to the left document margin (the default option). Only the number of spaces characters between words determines the distance between them.
RightToggleParagraphAlignmentRightAligns all text lines in a paragraph to the right document margin. The fixed distances between words depend on the number of delimiting space characters.
CenterToggleParagraphAlignmentCenterCenters all text lines in a paragraph between the left and right document margins. The distances between words are are identical to the “Left” and “Right” modes.
JustifyToggleParagraphAlignmentJustifyDistributes all words evenly within each text line of a paragraph between the left and right document margins. A distance between words in a paragraph line depends on the total number of characters in all words that fit into the line.

The IdxRichEditParagraph interface’s Alignment property references the TdxRichEditParagraphAlignment type.

Note

TdxRichEditParagraphAlignment is a scoped enumeration type. Use the type name together with a scope resolution token (. in Delphi or :: in C++Builder) followed by an enumeration value to refer to this value. For example, use TdxRichEditParagraphAlignment.Justify (in Delphi) or TdxRichEditParagraphAlignment::Justify (in C++Builder) to refer to the Justify value in code.

See Also

dxRichEdit.NativeApi Unit