Vcl.Graphics.TCanvas.TextOut
Delphi
procedure TextOut(X, Y: Integer; const Text: string); override;
C++
virtual void __fastcall TextOut(int X, int Y, const System::UnicodeString Text);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Graphics.pas Vcl.Graphics.hpp |
Vcl.Graphics | TCanvas |
Description
Writes a string on the canvas, starting at the point (X,Y), and then updates the PenPos to the end of the string.
Use TextOut to write a string onto the canvas. The string will be written using the current value of Font. Use the TextExtent method to determine the space occupied by the text in the image. To write only the text that fits within a clipping rectangle, use TextRect instead.
After a call to TextOut, the PenPos property indicates the point at the top right of the text on the canvas.
See Also
Code Examples
- HeaderSection (Delphi)
- OnKeyDown (Delphi)
- TListIndexOf (Delphi)
- HeaderSection (C++)
- OnKeyDown (C++)
- TListIndexOf (C++)