Skip to main content
.NET 8.0+

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

EnumDescriptor.GetCaption(Int32) Method

Returns the display caption associated with a specified value of the enumeration represented by the EnumDescriptor.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public string GetCaption(
    int intValue
)

#Parameters

Name Type Description
intValue Int32

An integer value representing the enumeration value index, whose corresponding display caption will be retrieved.

#Returns

Type Description
String

A string representing the display caption associated with the specified value of the enumeration represented by the EnumDescriptor.

#Remarks

Generally, there is no need to use this GetCaption method overload, as there is an overload which takes an enumeration value directly.

See Also