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

richTextBox size in Inches

1 Answer 104 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Niklas
Top achievements
Rank 1
Niklas asked on 08 Mar 2013, 10:57 AM
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! :)

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 11 Mar 2013, 03:39 PM
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.

Greetings,
Iva Toteva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RichTextBox
Asked by
Niklas
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or