Vcl.Graphics.TCustomCanvas.TextRect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

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

Description

Writes a string inside a clipping rectangle.

Override the TextRect method to implement writing 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 do not appear. The upper-left corner of the text is placed at the point (X, Y).

See Also