Click here to Skip to main content
15,888,330 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi

i am working on the richtextbox,

iam inserting the image in the richtextbox
here is the sample code


FlowDocument flb = new FlowDocument();
               BitmapImage bitmapSmiley = new BitmapImage(new Uri(cboImageSample.SelectedItem.ToString() + ".png", UriKind.Relative));
               Paragraph para = new Paragraph();
               Image image = new Image();
               image.Source = bitmapSmiley;
               image1.Source = bitmapSmiley;
               image.Height = 20;
               image.Width = 20;
               image.Tag = cboImageSample.SelectedItem.ToString() + ".png";
               para.Inlines.Add(image);
               richTextBox2.Document.Blocks.Add(para);


so that i want to read the data what excately it contains with including the images
or other wise i am inserting the image in richtextbox2 with the tag name also so that i can find the image in the line

so how can i find the images or image tag


thanks in advanced
Posted
Updated 22-Feb-12 19:50pm
Comments
Sergey Alexandrovich Kryukov 23-Feb-12 3:38am    
"Excately"? Sorry, what does it mean?
--SA
Praveen Kullu 23-Feb-12 4:16am    
Here is What i think you mean:

You are inserting or showing image in RichTextBox.
You want to read all lines in the RichTextBox.
You also want to show in which line is the image located.

Is it Correct?

Reply in comments.
[no name] 23-Feb-12 7:24am    
yes

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900