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

Get Image path

2 Answers 128 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
haider aslam
Top achievements
Rank 1
haider aslam asked on 13 Oct 2011, 09:07 AM
Hi All,
I have inserted an image into RadRichTextBox...Can i access the path of this image, the location from where i inserted it? Is there some Property to access path of inserted image(s)?

2 Answers, 1 is accepted

Sort by
0
haider aslam
Top achievements
Rank 1
answered on 15 Oct 2011, 08:18 PM
anyone? any answer?
0
Iva Toteva
Telerik team
answered on 18 Oct 2011, 10:34 AM
Hello Haider Aslam,

There is no way to access the path of the inserted image, as ImageInline objects do not keep a reference to the path of the image once inserted.
However, you can implement your custom InsertImage method or command similar to the default one. It can use the OpenFileDialog like the default command or retrieve the image in any other way. Then, you can have a dictionary keep a mapping from the ImageInline objects to the path of the file that was used to create it.

Kind regards,
Iva Toteva
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
RichTextBox
Asked by
haider aslam
Top achievements
Rank 1
Answers by
haider aslam
Top achievements
Rank 1
Iva Toteva
Telerik team
Share this question
or