How to apply Fontsize in RadRichTexBbox

2 posts, 0 answers
  1. Chandra Prakash
    Chandra Prakash avatar
    4 posts
    Member since:
    Mar 2011

    Posted 13 Mar 2011 Link to this post


    I have applied a RadRichTextBox in my application. But i m facing a problem that there is default font size is 12. I Want to reduce the font size on runtime application.

    Can anyone suggest me for this problem.

    Sr. WebDesigner
  2. Alex
    Alex avatar
    129 posts

    Posted 17 Mar 2011 Link to this post

    Hi Chandra Prakash,

    You can use the FontSize property of the rich text box to alter the default font size used in the control. If you are using this approach you will also have to set the DocumentInheritsDefaultStyleSettings to true. Here is an example:

    <telerik:RadRichTextBox x:Name="editor" FontSize="8" DocumentInheritsDefaultStyleSettings="True"/>

    You can also change the font size runtime, using the IncrementFontSize and DecrementFontSize methods in the RadRichTextBox. Here is a sample button event handler that will decrease the font size of the entire document:

    private void DecrementFontSize_Click(object sender, RoutedEventArgs e)

    I hope this was helpful. Please contact us if you have more questions.

    Best wishes,
    the Telerik team
  3. DevCraft R3 2016 release webinar banner
Back to Top