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

Move caret position to the end of document

1 Answer 247 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Pawel
Top achievements
Rank 1
Pawel asked on 21 Aug 2014, 07:28 AM
How can I move caret position to the end of document (last character in text in document)?

1 Answer, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 21 Aug 2014, 02:42 PM
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.
 
Tags
RichTextBox
Asked by
Pawel
Top achievements
Rank 1
Answers by
Petya
Telerik team
Share this question
or