This is a migrated thread and some comments may be shown as answers.

How to format inserted elements or image?

0 Answers 44 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Emiya
Top achievements
Rank 1
Emiya asked on 18 Oct 2012, 05:52 AM

Hello Telerik Team:
                 I have 2 questions about formating elements in RadRichTextBox programatically.
                 1.How can I format the inserted image? I want to set the "Text Wraping" property to "In front of Text".
                                    I have inserted an image into RadRichTextBox at the end of Document programatically, for example:
    

                                         OpenFileDialog d = new OpenFileDialog();
                                        if (d.ShowDialog() == true)
                                        {
                                        FileStream fs = d.File.OpenRead();
                                        rtxtContent.Document.CaretPosition.MoveToLastPositionInDocument();
                                        ImageInline img = new ImageInline(fs);
                                        this.rtxtContent.InsertInline(img);

                                        }
                                        how can I made it?
        
                2. How can I find some specific inline elements and format them?        
                    I need to find the specific inline elements as anchor by "name?" or by something, then replace them  with my images,that I want to made a digital signature.

Thanks
Emiya

Tags
RichTextBox
Asked by
Emiya
Top achievements
Rank 1
Share this question
or