This is a migrated thread and some comments may be shown as answers.

How to set the FontSize of a ListLevelStyle?

1 Answer 63 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 22 Jul 2013, 05:52 PM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Mihail
Telerik team
answered on 24 Jul 2013, 10:19 AM
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 >>
Tags
RichTextBox
Asked by
Markus
Top achievements
Rank 1
Answers by
Mihail
Telerik team
Share this question
or