Vcl.Controls.TCustomControl.Canvas

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Canvas: TCanvas read FCanvas;

C++

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

Properties

Type Visibility Source Unit Parent
property protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TCustomControl

Description

Specifies the TCanvas object that presents a drawing surface for the control.

Use the properties of the TCanvas object to draw or paint on the surface of the control. Canvas encapsulates a Windows device context, providing all the tools and methods needed for drawing and painting.

Canvas is a protected property that is usually redeclared as public in descendants of TCustomControl.

See Also

Code Examples