TTextStyle
The Style of the Text to be drawn in a rectangle
Declaration
Source position: graphics.pp line 95
type TTextStyle = packed record |
Alignment: TAlignment; |
|
|
Layout: TTextLayout; |
|
|
SingleLine: Boolean; |
|
|
Clipping: Boolean; |
|
|
ExpandTabs: Boolean; |
|
|
ShowPrefix: Boolean; |
|
|
Wordbreak: Boolean; |
|
|
Opaque: Boolean; |
|
|
SystemFont: Boolean; |
|
|
RightToLeft: Boolean; |
|
|
end; |
Description
The Style of the Text to be drawn in a rectangle
- Alignment : TextRect Only: horizontal alignment
- Layout : TextRect Only: vertical alignment
- SingleLine: boolean; If WordBreak is false then process #13, #10 as standard chars and perform no Line breaking.
- Clipping : boolean; TextRect Only: Clip Text to passed Rectangle
- ExpandTabs: boolean; currently ignored
- ShowPrefix: boolean; TextRect Only: Process first single ampersand per line as an underscore and draw double ampersand as a single ampersand
- Wordbreak : boolean; TextRect Only: If line of text is too long to fit between left and right boundaries, try to break into multiple lines between words
- Opaque : boolean; TextRect: Fills background with current Brush
- Opaque : TextOut : Fills background with current foreground color
- SystemFont: Boolean; Use the system font instead of Canvas Font
- RightToLeft: Boolean; For RightToLeft text reading (Text Direction)