title: Draw text on a shape
body: <p>I want to draw a String on some shapes following the examples in <a href="http://msdn.microsoft.com/en-us/library/aa327572%28v=vs.71%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/aa327572%28v=vs.71%29.aspx</a> and <a href="http://www.switchonthecode.com/tutorials/csharp-snippet-tutorial-how-to-draw-text-on-an-image" rel="nofollow">http://www.switchonthecode.com/tutorials/csharp-snippet-tutorial-how-to-draw-text-on-an-image</a>. I use C# , so I need in any case the PaintEventArgs e. However, when I insert it as parameter in a method like DrawStringRectangleF(PaintEventArgs e) it is not (as expected) directly recognized. I import the  System.Windows.Forms.PaintEventArgs and the field “Forms” is still not recognized? What should I do? </p>
  
  <p>Is there any other simpler way to assign text on a shape, the style of which I can adjust?     </p>