HtmlContentPopup.HtmlImages Property
Gets or sets the source of images to display using <img> tags.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v25.2.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Property Value
| Type | Default | Description |
|---|---|---|
| Object | null | A source of images. |
Remarks
The <img> tag allows you to display an image from the HtmlImages collection and a bound data object (HtmlContentPopup.DataContext).
Do the following to display an image from the HtmlImages collection:
- Create an image collection (for example, ImageCollection, SvgImageCollection, DPIAwareImageCollection, or SharedImageCollection).
- Add an image to the image collection and set the image’s name in the collection.
- Assign the image collection to the
HtmlImagesproperty. - Define the
<img>tag in HTML markup, and set the tag’ssrcattribute to the image’s name.
See the following topic for more information: HTML Tags - ‘img’ Tag.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the HtmlImages property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.