sideways text ??

  • Thread starter Thread starter ian
  • Start date Start date
I

ian

Hello folks !

can anyone tell me how to draw some text that is on it's side going up the
page ?

Thanks,
Ian.
 
use a Matrix, Matrix.Rotate() it, and put it in the Graphics object's
Transform property
 
* "ian said:
can anyone tell me how to draw some text that is on it's side going up the
page ?

In the form's 'Paint' event handler or 'OnPaint' method:

\\\
e.Graphics.RotateTransform(90);
e.Graphics.DrawString("Hello World!", this.Font, Brushes.Blue, 0, 0);
///
 
Remember that rotating the graphics transform usually takes place around the
origin so rotating text 90 degrees and drawing it at 0,0 will show nothing
because the text is rotated off the screen.

The GDI+ FAQ has an article on how to draw rotated text.

--
Bob Powell [MVP]
Visual C#, System.Drawing

All you ever wanted to know about ListView custom drawing is in Well Formed.
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Read my Blog at http://bobpowelldotnet.blogspot.com
 
Back
Top