Vcl.Graphics.TTextFormat
Delphi
TTextFormat = set of TTextFormats;
C++
typedef System::Set<TTextFormats, TTextFormats::tfBottom, TTextFormats::tfComposited> TTextFormat;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
set typedef |
public | Vcl.Graphics.pas Vcl.Graphics.hpp |
Vcl.Graphics | Vcl.Graphics |
Description
TTextFormat indicates how a text viewer control displays its contents.
TTextFormat has the following values:
| Value | Meaning |
|---|---|
|
tfBottom |
Justifies the text to the bottom of the rectangle. This value is used only with the |
|
tfCalcRect |
Determines the width and height of the rectangle. |
|
tfCenter |
Centers text horizontally in the rectangle. |
|
tfEditControl |
Duplicates the text-displaying characteristics of a multiline edit control. |
|
tfEndEllipsis |
For displayed text, replaces the end of a string with ellipses to ensure the result fits in the specified rectangle. |
|
tfPathEllipsis |
For displayed text, replaces characters in the middle of the string with ellipses to ensure the result fits in the specified rectangle. |
|
tfExpandTabs |
Expands tab characters. |
|
tfExternalLeading |
Includes the font external leading in line height. |
|
tfLeft |
Aligns text to the left. |
|
tfModifyString |
Modifies the specified string to match the displayed text. |
|
tfNoClip |
Draws without clipping. |
|
tfNoPrefix |
Turns off processing of prefix characters. |
|
tfRight |
Aligns text to the right. |
|
tfRtlReading |
Layout in right-to-left reading order for bidirectional text when the font selected into the hdc is a Hebrew or Arabic font. |
|
tfSingleLine |
Displays text on a single line only. |
|
tfTop |
Justifies the text to the top of the rectangle. |
|
tfVerticalCenter |
Centers text vertically. |
|
tfWordBreak |
Breaks words. |
|
tfHidePrefix |
Ignores the ampersand (&) prefix character in the text. |
|
tfNoFullWidthCharBreak |
Prevents a line break at a DBCS (double-wide character string), so that the line-breaking rule is equivalent to SBCS strings. |
|
tfPrefixOnly |
Draws only an underline at the position of the character following the ampersand (&) prefix character. Does not draw any character in the string. |
|
tfTabStop |
Sets tab stops. |
|
tfWordEllipsis |
Truncates any word that does not fit in the rectangle and adds ellipses. |
|
tfComposited |
Draws text with antialiased alpha. |