.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET 5.0+

ImageInfo Struct

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

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v21.2.dll

Declaration

public struct ImageInfo :
    IEquatable<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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ImageInfo struct.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also