Profile Picture

How to change the color and alignment of the chart header?

Posted By Matt McLoughlin 14 Years Ago

How to change the color and alignment of the chart header?

Author
Message
Matt McLoughlin
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 1, Visits: 1

1.  How do I change the color of the header text?

2.  How do I align the header to be centered?  Currently it is left justified.  However, when I change header.ContentAlignment, it totally messes up the alignment of the header and the gauge.  All I want to do is center it.

Thanks!!!

 

My current header code:

 

NLabel header = new NLabel("My Cool Chart");

header.TextStyle.FontStyle = new NFontStyle("Arial", 14, FontStyle.Italic);

header.TextStyle.ShadowStyle.Type = ShadowType.LinearBlur;

header.ContentAlignment = ContentAlignment.BottomRight;

header.Location = new NPointL(new NLength(3, NRelativeUnit.ParentPercentage),

new NLength(2, NRelativeUnit.ParentPercentage));






Similar Topics


Reading This Topic