DrawWidth

This property returns and sets the line width for output from a graphics method.

Syntax

object.DrawWidth [= size]

Parameters

object
Object expression that evaluates to a PictureBox control of a Form object.
size
Numeric expression from 1 through 32,767. This value represents the width of the line in pixels. The default is 1 pixel wide.

Remarks

Increase the value of this property to increase the width of the line. If the DrawWidth property setting is greater than 1, the DrawStyle property setting 1 produces a solid line; the DrawStyle property value is not changed. Setting DrawWidth to 1 enables DrawStyle to produce the results shown in the DrawStyle property table.