Back to Devexpress

TdxRichEditShapeHorizontalAlignment Enum

vcl-dxrichedit-dot-nativeapi-ceae83f5.md

latest3.5 KB
Original Source

TdxRichEditShapeHorizontalAlignment Enum

Enumerates floating shape horizontal alignment modes.

Declaration

delphi
TdxRichEditShapeHorizontalAlignment = (
    None,
    Left,
    Center,
    Right,
    Inside,
    Outside
);

Members

Name
None
Left
Center
Right
Inside
Outside

Remarks

Options include:

ValueDescription
NoneThe floating shape’s Offset. X property specifies the absolute horizontal offset (in the parent document’s measurement units) from the selected document item (such as a character within a text line, for instance).
LeftThe left border of a floating picture or text box is aligned to a selected relative horizontal position (a document item, such as a page or column, etc.). The floating shape ignores the Offset. X property value in this mode.
CenterThe floating shape is horizontally centered on a document item specified via the RelativeHorizontalPosition property. The floating shape ignores the Offset. X property value in this mode.
RightThe right border of a floating shape is aligned to a selected relative horizontal position. The shape’s Offset. X property is ignored in this mode.
InsideThe “Inside” floating shape alignment mode (the reserved enumeration value). The Rich Edit control correctly persists this floating shape attribute in supported document file formats, but the current implementation has no dedicated visualization routines for this mode.
OutsideThe “Outside” floating shape alignment mode (the reserved enumeration value). The Rich Edit control correctly persists this floating shape attribute in supported document file formats, but the current implementation has no dedicated visualization routines for this mode.

The IdxRichEditShape interface’s HorizontalAlignment property references the TdxRichEditShapeHorizontalAlignment type.

Note

TdxRichEditShapeHorizontalAlignment 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 TdxRichEditShapeHorizontalAlignment.Right (in Delphi) or TdxRichEditShapeHorizontalAlignment::Right (in C++Builder) to refer to the Right value in code.

See Also

TdxRichEditShapeRelativeHorizontalPosition

TdxRichEditShapeRelativeVerticalPosition

TdxRichEditShapeVerticalAlignment

dxRichEdit.NativeApi Unit