January 2002
Intermediate to advanced
288 pages
5h 48m
English
Pens are used for all drawing methods of the Graphics object with the exception of the DrawString method. A pen can be used to draw solid lines, dash patterns, and even brush-style lines such as gradient or hatch. To create brush-style pens, use the property Pen constructor for a new pen, or assign the existing brush to the pen's Brush property.
Figure 4.5 shows the interface for the Pen Demo. The property grid allows for changing the properties of the current pen to see the result.

Unfortunately, pens are not very exciting and a lengthy explanation of their use is not necessary. However, the Pen Demo is interesting ...