TiObjectCanvas.DefaultPenStyle

TiObjectCanvas

Specifies the default pen style property of drawing objects when added to the control.

type TPenStyle = (psSolid, psDash, psDot, psDashDot, psDashDotDot, psClear, psInsideFrame);

property DefaultPenStyle : TPenStyle;

Description

Use DefaultPenStyle to get or set the default pen style property of drawing objects when added to the control.

These are the possible values:

Value
Meaning
psSolid
A solid line.
psDash
A line made up of a series of dashes.
psDot
A line made up of a series of dots.
psDashDot
A line made up of alternating dashes and dots.
psDashDotDot
A line made up of a serious of dash-dot-dot combinations.
psClear
No line is drawn (used to omit the line around shapes that draw an outline using the current pen).
psInsideFrame
A solid line, but one that may use a dithered color if Width is greater than 1.

Example

Delphi

iComponent.DefaultPenStyle := psSolid;

C++ Builder

iComponent->DefaultPenStyle = psSolid;

Contents | Index | Previous | Next