Show: Delphi C++
Display Preferences

Vcl.Graphics.TCanvas.Pen

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Pen: TPen read FPen write SetPen;

C++

__property TPen* Pen = {read=FPen, write=SetPen};

Properties

Type Visibility Source Unit Parent
property published
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TCanvas

Description

Specifies the kind of pen the canvas uses for drawing lines and outlining shapes.

Set Pen to specify the pen to use for drawing lines and outlining shapes in the image. The value of Pen is a TPen object. Set the properties of the TPen object to specify the color, style, width, and mode of the pen.

Note: Setting the Pen property assigns the specified TPen object, rather than replacing the current TPen object.

See Also

Code Examples


Personal tools
In Other Languages
Previous Versions
Assistance