In my project, I need to insert a InlineUIContainer which includes a TextBlock into the RadRichTextBox, after the insertion, how to keep the InlineUIContainer and other plain text the same height? Thanks.
3 Answers, 1 is accepted
0
Iva Toteva
Telerik team
answered on 08 Dec 2011, 03:32 PM
Hello Liang,
Are you inserting TextBlocks in the document in order to have some of the text read-only?
If that is the case, you should either use the newly introduced DocumentProtection feature or the ReadOnlyRanges. The way document protection works can be checked in our latest example, while ReadOnlyRanges can be previewed in a demo in this forum post.
Regards,
Iva Toteva
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Hi, the text in the "TextBlock" need to be treated as a unit, I mean the insertion caret should not be able to be placed inside the text. And the "TextBlock" should be able to handle the mouse double click event.
Thanks.
0
Mike
Telerik team
answered on 14 Dec 2011, 04:29 PM
Hi Liang,
InlineUIContainers are not resized automatically as other document elements and it is up to the developer to set the appropriate Height.
Kind regards,
Mike
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>