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.
Unfortunately, activation email could not send to your email. Please try again.

Inserting text

Thread ID:





121116 Nov 11,2015 01:15 PM Nov 13,2015 01:48 AM UWP 3
Tags: SfRichTextBoxAdv
Daniel Manchester
Asked On November 11, 2015 01:15 PM

I have a  button on the ribbon that I want to use to insert some predefined text at the cursor position how would I do that?



Arumuga Perumal S [Syncfusion]
Replied On November 12, 2015 12:10 AM

Hi Daniel,

Thank you for contacting Syncfusion support.

Our SfRichTextBoxAdv provides API support to insert text at the current selection position. The following code sample illustrates how to insert predefined text at current cursor position.


<RichTextBoxAdv:SfRichTextBoxAdv x:Name="richTextBoxAdv" xmlns:RichTextBoxAdv="using:Syncfusion.UI.Xaml.RichTextBoxAdv" />


richTextBoxAdv.Selection.InsertText("Hello world");

We have also attached the sample to demonstrate the same. Please find the sample from following location. Try running the sample and let us know if this helps you.

Sample Link

Arumuga Perumal S.

Daniel Manchester
Replied On November 12, 2015 07:22 PM

That worked great.  Thanks!

Narendran Srinivasan [Syncfusion]
Replied On November 13, 2015 01:48 AM

Hi Daniel,

Thank you for your update,

We are happy to hear that the provided sample meets your requirement. Please let us know if you require any further assistance. We will be happy to assist you.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.