We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How can I set the cursor position programatically?

I would like to be able to programatically set the cursor position to the end of a document in the document editor so that I can add a new page to the end of the document and insert text there, using methods in the API reference such as InsertPageBreakAsync and InsertTextAsync. Is this possible?

1 Reply

SK Selvaprakash Karuppusamy Syncfusion Team March 16, 2023 09:58 AM UTC

Hi Alex,

Yes, please refer to the code below for your reference.

The following code illustrates how to move the cursor to the end of the document.



The following code illustrates how to insert a page break.



The following code illustrates how to insert text.



Selvaprakash K

Live Chat Icon For mobile
Up arrow icon