Specifies the type of line to be used as the border of a Shape object.

Property of

Shape

Description

Use penStyle to control the appearance of the border of a Shape object when the penWidth is 1.

You can specify any of five settings for penStyle:

Value

Description

Example

0

Solid

image\PEN00.gif

 

1

Dash

image\PEN01.gif

 

2

Dot

image\PEN02.gif

 

3

Dash Dot

image\PEN03.gif

 

4

DashDotDot

image\PEN04.gif

 

If penWidth is greater than 1, the penStyle property is ignored and the outline is always drawn with a solid pen.