DrawWidth Property (AForm)

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

Syntax

Object.DrawWidth [ = nWidth ]

The DrawWidth property syntax has the following parts:

 

Name

Type

Description

Object

AForm

AForm object

nWidth

Short

A numeric expression from 1 through 32,767. This value represents the width of the line in pixels. The default is 1 pixel wide.

Comments

When using graphics methods on a form, the DrawWidth property sets the width of the line drawn in an integral number of pixels. If DrawWidth is 1, the DrawStyle property determines the style. If DrawWidth is greater than 1, the DrawStyle property settings of 1 through 4 will produce a solid line, even though the DrawStyle property value is not changed.

The property is not applicable for MDI Form type since drawing functions are not supported for MDI Forms.

Example

The following statement changes the AForm's DrawWidth to 2 pixels, thus affecting the DrawStyle:

frm1.DrawWidth=2

Applies to

AForm

See Also

DrawMode, DrawStyle, ScaleMode, ScaleWidth