Sams Teach Yourself C# in 24 Hours

Sams Teach Yourself C# in 24 Hours

By James Foxall and Wendy Haro-Chun

Q&A

  1. What if I need to draw a lot of lines, one starting where another ends? Do I need to call DrawLine() for each line?

    The Graphics object has a method called DrawLines(), which accepts a series of points. The method draws lines connecting the sequence of points.

  2. Is there a way to fill a shape?

    The Graphics object includes methods that draw filled shapes, such as FillEllipse() and FillRectangle().

Share ThisShare This

Informit Network