Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxRichEditTextWrappingType Enum

Enumerates available document layer positions and text wrapping modes for a floating shape.

#Declaration

Delphi
TdxRichEditTextWrappingType = (
    Square,
    Tight,
    Through,
    TopAndBottom,
    BehindText,
    InFrontOfText
);

#Members

Name
Square
Tight
Through
TopAndBottom
BehindText
InFrontOfText

#Remarks

Options include:

Icon

Value

End-User Command

Description

Example

Square

SetFloatingObjectSquareTextWrapType

The “Square” text wrapping mode. A floating picture or text box is on the same layer with the parent document’s text. The text wraps around all sides of the floating shape’s bounding square.

The shape’s MarginBottom, MarginLeft, MarginRight, and MarginTop properties specify the distances (in the parent document’s measurement units) between text and the corresponding shape borders.

Tight

SetFloatingObjectTightTextWrapType

The “Tight” text wrapping mode (the reserved enumeration value). A floating picture or text box is on the same layer with the parent document’s text. The text tightly wraps around the floating shape and ignores margins between its borders and text.

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 the “Tight” text wrapping mode. The mode looks identical to “Square” as a result.

Through

SetFloatingObjectThroughTextWrapType

The “Through” text wrapping mode (the reserved enumeration value). A floating picture or text box is on the same layer with the parent document’s text. The text tightly wraps around the floating shape and fills the shape’s transparent background areas. The distances between the shape’s borders and text are ignored in the same manner as in the “Tight” mode.

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 the “Through” text wrapping mode. The mode looks identical to “Square” as a result.

TopAndBottom

SetFloatingObjectTopAndBottomTextWrapType

The “Top and Bottom” text wrapping mode. A floating picture or text box shares the layer with the parent document’s text and splits it horizontally. The shape’s MarginBottom and MarginTop properties specify the distances between the split portions of text and the corresponding shape borders.

BehindText

SetFloatingObjectBehindTextWrapType

The “Behind Text” text wrapping mode. A floating picture or text box is on the “background” layer, that is, behind the parent document’s text.

InFrontOfText

SetFloatingObjectInFrontOfTextWrapType

The “In Front of Text” text wrapping mode. A floating picture or text box is on the “foreground” layer, that is, overlaps the parent document’s text. The underlying text is visible if the floating shape is semi-transparent.

The IdxRichEditShape interface’s TextWrapping property references the TdxRichEditTextWrappingType type.

Note

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

See Also