LabelControl.HtmlImages Property
Gets or sets a collection of images to be inserted into the label using HTML tags.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v18.2.dll
Declaration
[DefaultValue(null)]
[DXCategory("Appearance")]
public ImageCollection HtmlImages { get; set; }
Property Value
Type | Default | Description |
---|---|---|
ImageCollection | *null* | A ImageCollection object that stores a collection of images. |
Remarks
The HTML formatting feature, which is activated via the LabelControl.AllowHtmlString property, allows you to format the label’s display text using a set of HTML tags. The image tag can be used to insert an image from an ImageCollection or from the project’s resources into the display text.
If you want to insert an image from an ImageCollection, create a ImageCollection object, add images to it and then assign this ImageCollection to the HtmlImages property. All images in the ImageCollection have names. Use these names to refer to specific images while using the image tag. See HTML Text Formatting to learn more.