ComponentOne VSView 8.0
PenWidth Property (VSPrinter)

Returns or sets the width of the pen used to outline graphical objects.

Syntax

[form!]VSPrinter.PenWidth[ = value As Variant ]

Remarks

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 Draw and Polygon properties as well as 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.

You may specify units with this value (inches, points, twips, cm, mm, or pixels). The default unit is twips. For details on using unit-aware measurements, see the Using Unit-Aware Properties topic.

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).

Data Type

Variant

Default Value

0

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback