Default font and font size

2 posts, 0 answers
  1. Duncan
    Duncan avatar
    10 posts
    Member since:
    Jun 2008

    Posted 03 Aug 2011 Link to this post

    Hi
    Is it possible to change the default font and font size? It always uses Calibri at size 12.  I've changed the Font property on the ribbon and also on the RadRichTextBox as well but it still defaults to Calibri.
    Thanks
    Matthew
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 04 Aug 2011 Link to this post

    Hi Duncan,

    Thank you for writing.

    Please refer to the following code snippet, which gives you the desired functionality:
    RadDocument doc = new RadDocument();
    Section section = new Section();
     
    Paragraph paragraph = new Paragraph();
    paragraph.FontSize = 32;
     
    section.Blocks.Add(paragraph);
    doc.Sections.Add(section);
     
    this.radRichTextBox1.Document = doc;

    I hope that you find this information useful.

    Best wishes,
    Stefan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top