how to set caret position to selection end?

3 posts, 0 answers
  1. Ajita
    Ajita avatar
    8 posts
    Member since:
    Oct 2013

    Posted 25 Oct 2013 Link to this post

    Hi,

    I want to set the care position to the selection end.
    How to do it.

    Regards
    Ajita
  2. Petya
    Admin
    Petya avatar
    975 posts

    Posted 25 Oct 2013 Link to this post

    Hello Ajita,

    Selection can consist of several separate ranges. Here is how you can move the caret to the end position of the first one:
    this.radRichTextBox.Document.CaretPosition.MoveToPosition(this.radRichTextBox.Document.Selection.Ranges.First.EndPosition);

    I hope this helps!

    Regards,
    Petya
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Ajita
    Ajita avatar
    8 posts
    Member since:
    Oct 2013

    Posted 29 Oct 2013 Link to this post

    Thanks a lot..
Back to Top