Packed Record TTextStyle

Hierarchy
Methods
Properties

Unit

Declaration

type TTextStyle = packed record

Description

Styles to describe how a text is drawn in a rectangle

Overview

Fields

Public Alignment: TAlignment;
Public Layout: TTextLayout;
Public SingleLine: boolean;
Public Clipping: boolean;
Public ExpandTabs: boolean;
Public ShowPrefix: boolean;
Public Wordbreak: boolean;
Public Opaque: boolean;
Public SystemFont: Boolean;
Public RightToLeft: Boolean;
Public EndEllipsis: Boolean;

Description

Fields

Public Alignment: TAlignment;

Horizontal alignment

Public Layout: TTextLayout;

Vertical alignment

Public SingleLine: boolean;

If WordBreak is false then process #13, #10 as standard chars and perform no Line breaking

Public Clipping: boolean;

Clip Text to passed Rectangle

Public ExpandTabs: boolean;

Replace #9 by apropriate amount of spaces (default is usually 8)

Public ShowPrefix: boolean;

Process first single '&' per line as an underscore and draw '&&' as '&'

Public Wordbreak: boolean;

If line of text is too long too fit between left and right boundaries try to break into multiple lines between words. See also EndEllipsis

Public Opaque: boolean;

Fills background with current brush

Public SystemFont: Boolean;

Use the system font instead of canvas font

Public RightToLeft: Boolean;

For RightToLeft text reading (Text Direction)

Public EndEllipsis: Boolean;

If line of text is too long to fit between left and right boundaries truncates the text and adds "...". If Wordbreak is set as well, Workbreak will dominate