Visual Basic Reference

Visual Studio 6.0

DrawWidth Property

See Also    Example    Applies To

Returns or sets the line width for output from graphics methods.


object.DrawWidth [= size]

The DrawWidth property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
size A numeric expression from 1 through 32,767. This value represents the width of the line in pixels. The default is 1; that is, 1 pixel wide.


Increase the value of this property to increase the width of the line. If the DrawWidth property setting is greater than 1, DrawStyle property settings 1 through 4 produce a solid line (the DrawStyle property value isn't changed). Setting DrawWidth to 1 allows DrawStyle to produce the results shown in the DrawStyle property table.