Vcl.StdCtrls.TLabel.EllipsisPosition

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property EllipsisPosition: TEllipsisPosition read FEllipsisPosition write SetEllipsisPosition default 0;

C++

__property EllipsisPosition = {default=0};

Properties

Type Visibility Source Unit Parent
property published
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TLabel

Description

Specifies how ellipsis is placed in text not fitting in allocated rectangle.

Vcl.StdCtrls.TLabel.EllipsisPosition inherits from Vcl.StdCtrls.TCustomLabel.EllipsisPosition. All content below this line refers to Vcl.StdCtrls.TCustomLabel.EllipsisPosition.

Specifies how ellipsis is placed in text not fitting in allocated rectangle.

Set EllipsisPosition to determine how an ellipsis is placed in text that does not fit in its allocated rectangle. This is a TEllipsisPosition constant and its value corresponds to constants specifying ellipsis placement in the dwDTFormat parameter of the Windows DrawText and DrawTextEx functions.

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.



See Also