WPF TeeChart - Header Color and TextAlignment properties

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Anil Kumar
Newbie
Newbie
Posts: 18
Joined: Tue Sep 04, 2007 12:00 am

WPF TeeChart - Header Color and TextAlignment properties

Post by Anil Kumar » Mon Feb 02, 2009 10:09 am

Hi,

I am using WPF Teechart. Chart Header Color and TextAlignment properties are not working.

Below is the code snippet, i am using to set Header properties

tChart1.Header.Text = "Cougar Chart";
tChart1.Header.Brush.Color = Color.FromArgb(255, 255, 0, 0);
tChart1.Header.TextAlign = TextAlignment.Left;
tChart1.Header.Font.Bold = true;
tChart1.Header.Font.Size = 11;
tChart1.Header.Font.Name = "Microsoft Sans Serif";
tChart1.Header.Visible = true;

Regards,
Priya

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Feb 02, 2009 11:25 am

Hi Priya,

Color is not working here because by default the header is transparent. You need to do this:

Code: Select all

			tChart1.Header.Transparent = false;
For header's color to be visible.

Regarding TextAlign, yes, you are right. I've added the issue (TW16013804) to the defect list to be fixed for next releases.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Anil Kumar
Newbie
Newbie
Posts: 18
Joined: Tue Sep 04, 2007 12:00 am

Post by Anil Kumar » Wed Feb 04, 2009 8:12 am

Thanks, Narcís

Post Reply