HtmlContentControl.HtmlImages Property
Gets or sets the source of images to display using <img>
tags.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.2.dll
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 (HtmlContentControl.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
HtmlImages
property. - Define the
<img>
tag in HTML markup, and set the tag’ssrc
attribute to the image’s name.
See the following topic for more information: HTML Tags - ‘img’ Tag.
See Also