Vcl.Direct2D.TDirect2DCanvas.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, Vcl::Graphics::TTextFormat TextFormat = Vcl::Graphics::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.Direct2D.pas
Vcl.Direct2D.hpp
Vcl.Direct2D TDirect2DCanvas

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

See Also