Back to Devexpress

TdxRichEditTextBoxSizeRule Enum

vcl-dxrichedit-dot-nativeapi-4006f492.md

latest1.9 KB
Original Source

TdxRichEditTextBoxSizeRule Enum

Enumerates floating text box height calculation modes.

Declaration

delphi
TdxRichEditTextBoxSizeRule = (
    Auto,
    Exact
);

Members

Name
Auto
Exact

Remarks

Options include:

ValueDescriptionExample (Shape.Size = 150 by 85 Points)
AutoThe floating shape automatically increases its height to fit the text box’s content. The calculated height depends on the shape’s width, the text box’s margins, and the content size.
ExactThe floating shape’s Size property determines its dimensions. The text box truncates text if it does not fit into the content area.

The IdxRichEditTextBox interface’s HeightRule property references the TdxRichEditTextBoxSizeRule type.

Note

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

See Also

dxRichEdit.NativeApi Unit