Move caret position to the end of document

2 posts, 0 answers
  1. Pawel
    Pawel avatar
    39 posts
    Member since:
    Apr 2014

    Posted 21 Aug 2014 Link to this post

    How can I move caret position to the end of document (last character in text in document)?
  2. Petya
    Admin
    Petya avatar
    975 posts

    Posted 21 Aug 2014 Link to this post

    Hi Pawel,

    DocumentPosition has a method that allows you to move it to the last position in the document. Here is how you can move the caret:
    this.radRichTextBox.Document.CaretPosition.MoveToLastPositionInDocument();

    I hope this helps.

    Regards,
    Petya
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top