Vcl.Controls.TGraphicControl.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 TGraphicControl

Description

Provides the drawing surface used by the graphic control.

Use the properties of the TCanvas object to draw or paint on the surface of the control.

Since a TGraphicControl instance does not have its own Windows screen object, it obtains its device context from its parent control.

See Also

Code Examples