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.
Custom drawing ratated text
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi tekwiz,
You should use Canvas.Font.Color as shown here:
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);
}
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
You're welcome!
I'm glad I could help you .
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |