richTextBox size in Inches

2 posts, 0 answers
  1. Niklas
    Niklas avatar
    1 posts
    Member since:
    Mar 2013

    Posted 08 Mar 2013 Link to this post

    Hey there,

    I'm currently searching for a way to set the radRichTextBox size to CM or inches.
    Something like in the
    radRichTextBoxRibbonUi -- Page layout -- Size 
    but not with predesigned sizes.

    Is there a given way to do that or do I have to calculate the size via ppi?

    Thanks for any help! :)
  2. Iva Toteva
    Iva Toteva avatar
    1319 posts

    Posted 11 Mar 2013 Link to this post

    Hi Niklas,

    You can use the PaperTypeConverter as described in this article. You can also create your own page size and use the static methods of the Unit class for conversion between units:

    this.radRichTextBox.ChangeSectionPageSize(new Size(Unit.InchToDip(5), Unit.InchToDip(7)));

    I hope this helps.

    Iva Toteva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top