Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCanvas.Pen Property

Specifies the active pen for the canvas.

#Declaration

Delphi
property Pen: TPen read; write;

#Property Value

Type
TPen

#Remarks

This property value defines the default line settings. Use the Pen.Color, Pen.Width, and Pen.Style properties to set the color, width (in pixels) and pattern to draw lines.

All line-related parameters of the shape and line draw procedures override the corresponding active pen settings.

Note

The Pen property maps to the Pen property of the underlying canvas.

See Also