How to set the FontSize of a ListLevelStyle?

2 posts, 1 answers
  1. Markus
    Markus avatar
    4 posts
    Member since:
    Jul 2012

    Posted 22 Jul 2013 Link to this post

    I added a NumberedList to a RadDocument programmatically. What I did not manage however was to adjust the FontSize of the numbers.

    Is there any option to change the font size of the list numbers programmatically? I didn't find such property in the ListLevelStyle...

    Regards,
    Markus
  2. Answer
    Mihail
    Admin
    Mihail avatar
    192 posts

    Posted 24 Jul 2013 Link to this post

    Hello Markus,

    You are correct, there is no direct property to set FontSize. But you can use the public property SpanProperties of the ListLevelStyle in order to achieve the desired result. Here is an example how to do it:

    listLevelStyle.SpanProperties.FontSize = 42;
    I hope this information answers your question.

    Regards,
    Mihail
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
Back to Top