Text Appearance Syntax

Thread is closed for posting
2 posts, 0 answers
  1. Derek Tapp
    Derek Tapp avatar
    1 posts
    Member since:
    Aug 2007

    Posted 23 May 2008 Link to this post


    This seems like it should be straightforward, but I can't find the details....

    Is there a good resource for the various properties you can use for the TextAppearance property within the HTML tags in RadChart?


    For a series you can set:

     <Appearance TextAppearance-TextProperties-Color="255,255,255" TextAppearance-TextProperties-Font="Verdana, 12pt">

    But what I can't do is find the syntax to make the font bold:


     <Appearance TextAppearance-TextProperties-Color="255,255,255" TextAppearance-TextProperties-Font="Verdana, 12pt, Bold">

    Doesn't work.

    I can achieve this programatically by using:

    RadChart1.Series.Item(x).Appearance.TextAppearance.TextProperties.Font = New System.Drawing.Font("Verdana", 12, System.Drawing.FontStyle.Bold)

    But what's the syntax to do this directly in the tag? For now it's just the syntax for bold/font weight I'm after, but if there's a good article on the various options for this that would be great.

  2. Ves
    Ves avatar
    2926 posts

    Posted 26 May 2008 Link to this post

    Hello Derek,

    Thanks for the note. Indeed, we need to improve our documentation.

    Onto your question -- you can set it like this:

    TextAppearance-TextProperties-Font="Verdana, 12pt, style=Bold"

    A hint is to set it design-time and check the generated markup. Hope this helps.

    Best wishes,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top