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.

RE: Drawing Vertical Text by JellevanderBeek

JellevanderBeek
Mon Nov 14 04:11:08 CST 2005

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" wrote:

> 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.
>
>
>

Re: Drawing Vertical Text by Herfried

Herfried
Mon Nov 14 04:39:45 CST 2005

"HaySeed" <HaySeed@discussions.microsoft.com> schrieb:
> 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).

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>