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

How can I convert DocumentPosition to TextPointer?

1 Answer 73 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Siamak
Top achievements
Rank 1
Siamak asked on 28 Sep 2012, 01:23 PM
Is this possible to convert Telerik.Windows.Documents.DocumentPosition to System.Windows.Documents.TextPointer? I try to darw
a rectangle as adorner on current word that is in CaretPosition. I do this in Windows RichTextBox as well but how can I do this in your RichTextBox?

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 02 Oct 2012, 05:35 AM
Hello Siamak,

RadRichTextBox has its own document model and does not use System.Windows.Documents.

However, the task you have described can be fulfilled using a custom UI layer. You can see how this has been done in this Silverlight demo and the respective example in the Click-once demos. More information on this feature can be found here.

Greetings,
Iva Toteva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

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