Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ImageLoader.GetEnumValueImageName(Object) Method

Returns the name of the image associated with an enumeration value.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public string GetEnumValueImageName(
    object enumValue
)

#Parameters

Name Type Description
enumValue Object

The enumeration value for which the associated image name will be retrieved.

#Returns

Type Description
String

A string representing the name of the image associated with the specified enumeration value.

#Remarks

As an alternative to this method, you can use the ImageInfo.ImageName property of the ImageInfo object returned by the ImageLoader.GetEnumValueImageInfo and EnumDescriptor.GetImageInfo methods.

The following code snippet illustrates use of the GetEnumValueImageName method. The code retrieves the name of the image associated with the MyEnum.FirstValue enumeration value.

string image = ImageLoader.Instance.GetEnumValueImageName(MyEnum.FirstValue);
See Also