Vcl.Forms.TCustomForm.Canvas

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Canvas: TCanvas read GetCanvas;

C++

__property Vcl::Graphics::TCanvas* Canvas = {read=GetCanvas};

Properties

Type Visibility Source Unit Parent
property public
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TCustomForm

Description

Provides access to the drawing area of the form.

Use TCanvas to draw on the client area of the form. Canvas is often used in the OnPaint event handler.

See Also

Code Examples