The requested page is not available for the requested platform. You are viewing the content for Default platform.

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
Public Structure 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