Vcl.Graphics.TCanvas.TextRect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure TextRect(var Rect: TRect; var Text: string; TextFormat: TTextFormat = []); overload; override;
procedure TextRect(Rect: TRect; X, Y: Integer; const Text: string); overload; override;

C++

virtual void __fastcall TextRect(System::Types::TRect &Rect, System::UnicodeString &Text, TTextFormat TextFormat = TTextFormat() )/* overload */;
virtual void __fastcall TextRect(const System::Types::TRect &Rect, int X, int Y, const System::UnicodeString Text)/* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TCanvas

Description

Writes a string inside a clipping rectangle.

Use TextRect to write a string within a limited rectangular region. Any portions of the string that fall outside the rectangle passed in the Rect parameter are clipped and don't appear. The upper left corner of the text is placed at the point (X, Y).

See Also

Code Examples