Vcl.Graphics.TTextFormats

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TTextFormats = (tfBottom, tfCalcRect, tfCenter, tfEditControl, tfEndEllipsis,
tfPathEllipsis, tfExpandTabs, tfExternalLeading, tfLeft, tfModifyString,
tfNoClip, tfNoPrefix, tfRight, tfRtlReading, tfSingleLine, tfTop,
tfVerticalCenter, tfWordBreak, tfHidePrefix, tfNoFullWidthCharBreak,
tfPrefixOnly, tfTabStop, tfWordEllipsis, tfComposited);

C++

enum DECLSPEC_DENUM TTextFormats : unsigned char { tfBottom, tfCalcRect, tfCenter, tfEditControl, tfEndEllipsis, tfPathEllipsis, tfExpandTabs, tfExternalLeading, tfLeft, tfModifyString, tfNoClip, tfNoPrefix, tfRight, tfRtlReading, tfSingleLine, tfTop, tfVerticalCenter, tfWordBreak, tfHidePrefix, tfNoFullWidthCharBreak, tfPrefixOnly, tfTabStop, tfWordEllipsis, tfComposited };

Properties

Type Visibility Source Unit Parent
enum public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics Vcl.Graphics

Description

TTextFormats indicates how a text viewer control displays its contents.

TTextFormats has the following values:

Value Meaning

tfBottom

Justifies the text to the bottom of the rectangle. This value is used only with the tfSingleLine value.

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.

See Also