Label items color

Thread is closed for posting
2 posts, 0 answers
  1. Adrian
    Adrian avatar
    3 posts
    Member since:
    Aug 2012

    Posted 28 Aug 2012 Link to this post

    I'm trying to set the color on the label items to black instead of the light gray that seems to be the default. 
    I've tried using :

      .PlotArea.XAxis.AxisLabel.TextBlock.Appearance.TextProperties.Color = Drawing.Color.Lime
            .PlotArea.XAxis.Appearance.LabelAppearance.FillStyle.MainColor = Drawing.Color.Lime
    but this has only changed the color on the label's background and not the color of the text itself. 

    How do I change the color of the actual text?
  2. Evgenia
    Evgenia avatar
    1437 posts

    Posted 31 Aug 2012 Link to this post


     You should set the color to the TextAppearance and not the LabelAppearance. For example:

    RadChart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Color = Color.Red;

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top