RepositoryItem.HtmlImages Property
Gets or sets a collection of images to be inserted into the editor’s display text or the display text of the editor’s items. This property is in effect when using the HTML formatting feature.
Namespace: DevExpress.XtraEditors.Repository
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, activated via the RepositoryItem.AllowHtmlDraw property, allows you to use a set of HTML tags to format the editor’s display text or the display text of the editor’s items. 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.