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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Inserting text

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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?

Thanks

Daniel

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

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.


Xaml

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


C#

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
Sample

Regards,
Arumuga Perumal S.


Daniel Manchester
Replied On November 13, 2015 12:22 AM UTC

That worked great.  Thanks!

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

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.

Regards,
Narendran


CONFIRMATION

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.

Warning Icon 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.Close Icon

;