ImageLoader.GetSmallImageInfo(String, Boolean) Method

Supplies metadata on an image used by ASP.NET Web Property Editors.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v18.2.dll


public ImageInfo GetSmallImageInfo(
    string imageName,
    bool isEnabled
Public Function GetSmallImageInfo(
    imageName As String,
    isEnabled As Boolean
) As ImageInfo


Type Name Description
String imageName

A string holding the name of the required image. This parameter is case-insensitive.

Boolean isEnabled

true, if the retrieved image is converted to grayscale; otherwise, false.


Type Description

An ImageInfo object supplying metadata on an image used by ASP.NET Web Property Editors.

To customize metadata returned by the GetSmallImageInfo method, handle the ImageLoader.CustomizeImageInfo event.

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

The following code snippet illustrates use of the GetSmallImageInfo method. The code retrieves the small Action_Open image.

using System.Drawing;
Image image = ImageLoader.Instance.GetSmallImageInfo("Action_Open", false).Image;
See Also