Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

HtmlContentControl.HtmlImages Property

Gets or sets the source of images to display using <img> tags.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(null)]
[DXCategory("Appearance")]
public object HtmlImages { get; set; }

#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:

Image im = Image.FromFile("c:\\Data\\photo.png");
imageCollection1.AddImage(im, "photo1");
htmlContentControl1.HtmlImages = imageCollection1;

See the following topic for more information: HTML Tags - ‘img’ Tag.

See Also