Skip to main content
A newer version of this page is available. .

ExcelFilteringDataEventArgs.HtmlImages Property

Gets or sets a collection of images to be inserted into filter item captions using HTML tags. This property is in effect when the HTML formatting feature is enabled for filter item captions.

Namespace: DevExpress.XtraEditors.Filtering

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

public ImageCollection HtmlImages { get; set; }

Property Value

Type Description
ImageCollection

An ImageCollection object that stores a collection of images.

Remarks

If captions of custom filter conditions added using the ExcelFilteringDataEventArgs.AddFilter method are formatted using the HTML tags, you can insert a custom image into a caption using the image tag.

If you want to insert an image into a caption, create an ImageCollection object, add images to it and then assign this collection to the HtmlImages event argument. All images in an ImageCollection have names. Use these names to refer to specific images while using the image tag. See an example below.


e.HtmlImages = new DevExpress.Utils.ImageCollection();
e.HtmlImages.AddImage(new System.Drawing.Bitmap("D:\\pic.png"), "pic");
if(e.Column == bcModification) {
    e.AddFilter("<image=pic><nbsp>Automatic Transmission (6-speed)", "Contains([" + fieldName + "], '6A')", true);
}
See Also