Sign in Join
FPDoc Onlineexperiment

TTextStyle record

In unit Graphics

The Style of the Text to be drawn in a rectangle.

Declaration

pascal
TTextStyle = packed record

Description

TTextStyle is a packed record type which contains setting used when a control draws text using TextOut or TextRect. It is used to save, restore and configure values needed for the canvas which renders a control.

Fields

AlignmentHorizontal alignment in the text rectangle.
LayoutVertical alignment in the text rectangle.
SingleLineIndicates if the text is rendered as a single line.
ClippingCauses text to be clipped to the text rectangle.
ExpandTabsCauses Tab characters to be replaced with spaces.
ShowPrefixDraws a single Ampersand characters as an accelerator key decoration.
WordbreakCauses a long line of text to be word-wrapped.
OpaqueCauses the output to be drawn with full opacity.
SystemFontCauses the system font to be used instead of the canvas font.
RightToLeftFor RightToLeft text reading (text direction).
EndEllipsisIndicates if text is "ellipsified" when too long for its rectangle.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.