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.
Syncfusion Feedback

How to use SelectionAdv.InsertPicture

Thread ID:

Created:

Updated:

Platform:

Replies:

132703 Sep 16,2017 01:09 AM UTC Sep 18,2017 11:43 AM UTC UWP 1
loading
Tags: SfRichTextBoxAdv
Andrew Keat
Asked On September 16, 2017 01:09 AM UTC

The rich text box has a new selection.InsertPicture method which takes an object as an input parameter.  What data type is it expecting for this input parameter?  I have tried BitmapImage and StorageFile and a string URL but neither seems to do anything.
Is there a quick sample of how this method is supposed to be used?

Arumuga Perumal S [Syncfusion]
Replied On September 18, 2017 11:43 AM UTC

Hi Andrew,

Thank you for contacting Syncfusion support.

SelectionAdv.InsertPicture(object) API of our SfRichTextBoxAdv control accepts picture provided as paramater of type Stream or byte[]. We will update these details in our online documentation.

Complete API documentation link:
https://help.syncfusion.com/cr/uwp/sfrichtextboxadv

InsertPicture documentation link:
https://help.syncfusion.com/cr/cref_files/uwp/sfrichtextboxadv/Syncfusion.SfRichTextBoxAdv.UWP~Syncfusion.UI.Xaml.RichTextBoxAdv.SelectionAdv~InsertPicture.html
You can also use InsertPictureCommand of our SfRichTextBoxAdv control that supports inserting pictures through command biding and code. We have prepared a sample application that demonstrates inserting picture using both SelectionAdv.InsertPicture API and InsertPictureCommand of our SfRichTextBoxAdv control.

Sample:
Sample.zip

Regards,
Arumuga Perumal S. 


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

;