Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
Insert picture into UltraFormattedTextEditor
posted

Hi,

I search informations about insert pictures into an UltraFormattedTextEditor.

What is the best method to add pictures between the text ?

Thanks

Diffy

 

Parents
No Data
Reply
  • 37774
    Verified Answer
    posted

    Diffy,

    You might find it easiest to use the UITypeEditor at design-time that allows you to edit the value of the text and also show the raw text; you can show this by clicking the '...' next to the Value property in the property grid.  There is an icon in the toolbar that will show you a dialog to choose which image you want to show in the editor, after which you can see the new raw text that describes how the image will be shown.  While you may not want to use this in your application, it will certainly give you a better illustration of how to achieve certain looks.

    With that being said, some sample raw text might look like:

    Text <img style="width:12px; height:12px;" src="C:\MyImage.png"/> Image

    You could also use the InsertValue method on the EditInfo object to insert formatted text.  I believe that this will insert a value at the current cursor location, so you could pass in the formatted image text.  You might find the list of supported tags useful.

    -Matt

     

Children