Printer Object
 
Syntax
 
Printer.PenStyle = vsPenStyleSettings
 
Description
Returns or sets the style of the pen used to outline graphical objects.
 
The PenColor, PenStyle, and PenWidth properties define the pen used to outline all graphical objects drawn on the control. The pen object is also used to borders around pages and tables depending on the settings of the PageBorder, TableBorder properties.
 
Graphical objects are created using the DrawRectangle, DrawCircle, and DrawEllipse methods.
 
Parameter
Description
vsBrushStyleSettings
This parameter contains the following pre-defined constants and values:
 
Constant
Value
Description
psSolid
0
Solid pen (default value).
psDash
1
Dashed pen.
PsDot
2
Dotted pen.
psDashDot
3
Dash-dot pen.
psDashDotDot
4
Dash-dot-dot pen.
psTransparent
5
Transparent pen (no lines).
psInsideSolit
6
Solid pen drawn inside shapes.
Note: Non-solid settings are only valid when the PenWidth property is set to zero (which translates into a pen one-pixel wide). This is a Windows GDI limitation, not imposed by the Printer object
See Also
Example