Page 1 of 1

WPF TeeChart - Header Color and TextAlignment properties

Posted: Mon Feb 02, 2009 10:09 am
by 13046610
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

Posted: Mon Feb 02, 2009 11:25 am
by narcis
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.

Posted: Wed Feb 04, 2009 8:12 am
by 13046610
Thanks, NarcĂ­s