Vcl.DBCtrls.TDBText.EllipsisPosition

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property EllipsisPosition;

C++

__property EllipsisPosition = {default=0};

Properties

Type Visibility Source Unit Parent
property published
Vcl.DBCtrls.pas
Vcl.DBCtrls.hpp
Vcl.DBCtrls TDBText

Description

Specifies where the ellipsis character (...) position in the text.

Set EllipsisPosition to determine where an ellipsis appears when the text is too long to fit within the control's bounds.

The following table lists values for TEllipsisPosition:

Value Meaning

epNone

An ellipsis is not inserted.

epPathEllipsis

Replaces text in the middle with an ellipsis so that the resulting text fits in the rectangle specified. If the text contains backslash (\) characters, treat the text as a path and attempt to preserve as much text as possible after the last backslash. Corresponds to a value of DT_PATH_ELLIPSIS in the dwDTFormat parameter.

epEndEllipsis

Replaces text at the end with an ellipsis so that the resulting text fits in the rectangle specified. Any word not fitting in the rectangle is truncated without adding an ellipsis. Corresponds to a value of DT_END_ELLIPSIS in the dwDTFormat parameter.

epWordEllipsis

Truncates any word that doesn't fit in the rectangle and adds ellipses. Corresponds to a value of DT_WORD_ELLIPSIS in the dwDTFormat parameter.