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

Inserting text

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

6 Replies

AP Arumuga Perumal S Syncfusion Team 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.



DM Daniel Manchester November 13, 2015 12:22 AM UTC

That worked great.  Thanks!


NS Narendran Srinivasan Syncfusion Team 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



ZH zhangjinyan replied to Narendran Srinivasan February 19, 2019 07:49 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


How to insert text in SfPdfViewerControl?


SS Sathish Sivakumar Syncfusion Team February 19, 2019 01:29 PM UTC

Hi Zhangjinyan, 
 
We are currently working on implementing the feature “Free text annotation in PDF Viewer in UWP” and this is available in our 2019 Vol 1 which is expected to be available in March 2019 tentatively. 
 
Regards, 
Sathish 



GR Gayathri Ramalingam Syncfusion Team March 14, 2019 05:23 PM UTC

Hi Zhangjinyan, 
We are glad to inform you that the feature “Add and modify free text annotation” has been implemented and included in our Essential Studio 2019 Volume 1 beta release v17.1.0.32 and is available for download under the following link.  
 
 
Please refer the API details in the document attached in the below link: 
 
 
Sample link: 
 
 
Regards, 
Gayathri R 


Loader.
Live Chat Icon For mobile
Up arrow icon