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

ImageInfo Struct

Supplies metadata information on an image used in an XAF application.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v19.1.dll

Declaration

public struct ImageInfo

Remarks

An ImageInfo instance represents an image used in an XAF application. The ImageInfo‘s properties provide access to the image, as well as to the associated metadata, such as image dimensions and the image name.

In XAF, images are managed via the ImageLoader class. To get an ImageInfo instance representing an image, you can use the ImageLoader class’ Get…ImageInfo methods. The following code snippet illustrates retrieving the BO_Customer image via the ImageInfo.Image property.

using System.Drawing;
//...
Image customer = ImageLoader.Instance.GetImageInfo("BO_Customer").Image;

For general guidelines on using images in an XAF application, refer to the Add and Override Images help topic.

See Also