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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to use SelectionAdv.InsertPicture

Thread ID:





132703 Sep 16,2017 01:09 AM UTC Sep 18,2017 11:43 AM UTC UWP 1
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:

InsertPicture documentation link:
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.


Arumuga Perumal S. 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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