Page 1 of 1

Custom drawing ratated text

Posted: Tue Sep 06, 2005 10:36 am
by 8884730
Hi.

I'm writing custom text using the
Canvas.RotateLabel().
Canvas.TextOut() methods. all works as expected, but I would need to be able to specify the color of the rotated text. I tried using the mCanvas.Pen.Color property, that affects lines drawn using Canvas.LineTo methods, but not text written with Canvas.RotateLabel(). Non rotated text can be colored using the font argument to TextOut, but is therre any way to rotate colored text?

thanks in advance.

Posted: Tue Sep 06, 2005 11:05 am
by narcis
Hi tekwiz,

You should use Canvas.Font.Color as shown here:

Code: Select all

		private void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
		{
			g.Font.Color = Color.Blue;
			g.RotateLabel(100,100,"Rotated Label", 45);
		}

thanks...

Posted: Tue Sep 06, 2005 11:16 am
by 8884730
thanks a lot.
Saved my *ss again :-)

Posted: Tue Sep 06, 2005 11:25 am
by narcis
:lol:

You're welcome!

I'm glad I could help you :wink:.