Printer Object
 
Syntax
 
Printer.PenWidth = varWidth
 
Description
Returns or sets the width 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. The pen is also used to outline text boxes drawn using the TextBox method when the Shade parameter is set to True.
 
If you set this property to zero, the resulting pen is one pixel wide. This is the only settings that allows the creation of non-solid pens (also see PenStyle).
 
See Also
Example