title: How to draw a dashed line over an object?
body: <p>I am drawing a line on a control on my Windows form like this:</p>
  
  <pre><code>            // Get Graphics object from chart
              Graphics graph = e.ChartGraphics.Graphics;
  
              PointF point1 = PointF.Empty;
              PointF point2 = PointF.Empty;
  
              // Set Maximum and minimum points
              point1.X = -110;
              point1.Y = -110;
              point2.X = 122;
              point2.Y = 122;
  
              // Convert relative coordinates to absolute coordinates.
              point1 = e.ChartGraphics.GetAbsolutePoint(point1);
              point2 = e.ChartGraphics.GetAbsolutePoint(point2);
  
              // Draw connection line
              graph.DrawLine(new Pen(Color.Yellow, 3), point1, point2);
  </code></pre>
  
  <p>I would like to know if it is possible to draw a dashed (dotted) line instead of a regular solid line?</p>