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

InlineUIContainer and Plain text

3 Answers 108 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Liang
Top achievements
Rank 1
Liang asked on 05 Dec 2011, 07:39 AM
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

Sort by
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 >>

0
Liang
Top achievements
Rank 1
answered on 09 Dec 2011, 10:52 AM
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 >>

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