Pen Property

See Also Applies To Example Model

Returns the associated Pen object.

Remarks

A Pen object exposes line drawing properties and methods that are used to draw on the Screen display. When called from a collection, it modifies all member objects the same way.

Example

The following example uses Pen object properties and methods to draw a star shape.

Bot.Pen.Color = vbtBlueGrey
Bot.Pen.Style = vbtSolid
Bot.Pen.Width = 4
Bot.Pen.Down
For Segment = 1 To 5
     Bot.Step 80
     Bot.Turn 144
Next Segment
Bot.Pen.Up