Vcl.Graphics.TPenStyle
Delphi
TPenStyle = (psSolid, psDash, psDot, psDashDot, psDashDotDot, psClear,
psInsideFrame, psUserStyle, psAlternate);
C++
enum DECLSPEC_DENUM TPenStyle : unsigned char { psSolid, psDash, psDot, psDashDot, psDashDotDot, psClear, psInsideFrame, psUserStyle, psAlternate };
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
enum | public | Vcl.Graphics.pas Vcl.Graphics.hpp |
Vcl.Graphics | Vcl.Graphics |
Description
TPenStyle indicates the type of line a pen draws.
TPenStyle can have one of the following 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 series 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. |
psAlternate |
The pen sets every other pixel. (This style is applicable only for cosmetic pens.) This style is only valid for pens created with the ExtCreatePen API function. (See MS Windows SDK docs.) This applies to both VCL and VCL.NET. |
psUserStyle |
The pen uses a styling array supplied by the user. Thus style is only valid for pens created with the ExtCreatePen API function. (See MS Windows SDK docs.) This applies to both VCL and VCL.NET. |