How can I convert DocumentPosition to TextPointer?

2 posts, 0 answers
  1. Siamak
    Siamak avatar
    3 posts
    Member since:
    Sep 2012

    Posted 28 Sep 2012 Link to this post

    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?
  2. Iva Toteva
    Iva Toteva avatar
    1319 posts

    Posted 02 Oct 2012 Link to this post

    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.

    Iva Toteva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top