The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

EnumDescriptor.GetImageInfo(Object) Method

Supplies metadata on the image associated with a particular value of the enumeration represented by the EnumDescriptor.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

public ImageInfo GetImageInfo(
    object value
)
Public Function GetImageInfo(
    value As Object
) As ImageInfo
public ImageInfo GetImageInfo(
    object value
)
Public Function GetImageInfo(
    value As Object
) As ImageInfo
public ImageInfo GetImageInfo(
    object value
)
Public Function GetImageInfo(
    value As Object
) As ImageInfo

Parameters

Name Type Description
value Object

The enumeration value for which image metada will be retrieved.

Parameters

Name Type Description
value Object

The enumeration value for which image metada will be retrieved.

Parameters

Name Type Description
value Object

The enumeration value for which image metada will be retrieved.

Returns

Type Description
ImageInfo

An ImageInfo object supplying metadata on the image associated with the specified value of the enumeration represented by the EnumDescriptor.

Returns

Type Description
ImageInfo

An ImageInfo object supplying metadata on the image associated with the specified value of the enumeration represented by the EnumDescriptor.

Returns

Type Description
ImageInfo

An ImageInfo object supplying metadata on the image associated with the specified value of the enumeration represented by the EnumDescriptor.

Remarks

The following code snippet illustrates use of the GetImageInfo property. The code retrieves images and display captions associated with MyEnum enumeration values.

using System.Drawing;
//...
EnumDescriptor myDescriptor = new EnumDescriptor(typeof(MyEnum));
foreach(object enumValue in myDescriptor.Values) {
    string caption = myDescriptor.GetCaption(enumValue);
    Image image = myDescriptor.GetImageInfo(enumValue).Image;
    //process caption and image
}
See Also