[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Graphics' (#lcl)

# TPen.Style

Contains the line drawing style for the pen.

## Declaration

Source position: graphics.pp line 692

`published property TPen.Style default psSolid;`

## Description

Style is a TPenStyle property with the style used to draw lines with the Pen. It can contain one of the following constant values:

- psSolid
- psDash
- psDot
- psDashDot
- psDashDotDot
- psInsideFrame
- psPattern
- psClear

psDash, psDot, psDashDot, and psDashDotDot are drawn using the corresponding TPenPattern for the Style. On the Windows platform, these styles are not available if Width has any value other than 1.

psInsideFrame uses a solid drawing style, and a Color dithered to one of the values in the color table for the device. The content drawn with the pen is reduced in size so that it appears inside of a bounding rectangle including the Width for the pen.

psClear, in general, tells the implementing class or routine that the drawing operation is not needed.

The default value for the property is psSolid. Setting a new value for the property causes the handle in Reference to be freed. The Changed method is called to signal the OnChange event handler (when assigned).

## See also

TPen.Width |  | Width for lines drawn using the Pen.
TPenStyle |  | Represents line drawing styles used when rendering to a canvas.
TPenPattern |  | Represents a pattern brush for a pen.