Using a Pen to Draw Lines and Shapes

The Graphics class provides a variety of drawing methods including those shown in the following list:

One of the arguments that you pass to such a drawing method is the address of a Pen object.

The following topics cover the use of pens in more detail: