Drawing Vertical Text

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone know how to render text vertically? I need text to appear on the
left of my screen reading from bottom to top and on the right reading from
top to bottom.
 
It's in the formatting flags:

StringFormat format = new StringFormat();
format.FormatFlags = StringFormatFlags.DirectionVertical;
e.Graphics.DrawString("hello world", this.Font, Brushes.Black,
new PointF(100, 100), format);
 
HaySeed said:
Does anyone know how to render text vertically? I need text to appear on
the
left of my screen reading from bottom to top and on the right reading from
top to bottom.

In addition to the other reply: You can draw text in an arbitrary angly by
applying a rotation transformation to the 'Graphics' object you use to draw
the text ('RotateTransform' member).
 
Back
Top