[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Draws text on the canvas at the specified location using the given style.
Source position: graphics.pp line 1164
public procedure TCanvas.TextRect( |
const ARect: TRect; |
X: Integer; |
Y: Integer; |
const Text: string |
); |
ARect: TRect; |
X: Integer; |
Y: Integer; |
const Text: string; |
const Style: TTextStyle |
); virtual; |
ARect |
|
Rectangle within which the specified text is drawn. |
X |
|
Horizontal text start (respected only if TextStyle.Alignment = taLeftJustify). |
Y |
|
Vertical position of the top of the text (respected only if TextStyle.Layout = tlTop). |
Text |
|
Text to be drawn. |
ARect |
|
Rectangle within which the specified text is drawn. |
X |
|
Horizontal text start (respected only if TextStyle.Alignment = taLeftJustify). |
Y |
|
Vertical position of the top of the text (respected only if TextStyle.Layout = tlTop). |
Text |
|
Text to be drawn. |
Style |
|
Optional parameter which determines whether the text is justified, word-wrapped, clipped, etc. If omitted, the current TextStyle for the canvas is used. |
Writes Text string within a specified rectangle, according to predefined Style.
The boundaries of the text rectangle are specified in ARect. X, Y define the starting point for writing the Text within the rectangle.
TextStyle determines whether the text is justified, centered, word-wrapped, clipped at the rectangle boundaries, etc. If the Style argument is omitted, defaults are assumed.
Note: The exact text position depends on the specified rectangle, the X, Y coordinates, and settings in TextStyle:
Version 3.2 | Generated 2024-02-25 | Home |