Skip to main content
.NET Framework 4.6.2+

EnumDescriptor.ParseCaption(String) Method

Returns the enumeration value corresponding to a particular display caption.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public object ParseCaption(
    string caption
)

Parameters

Name Type Description
caption String

A string representing the display caption which corresponds to a value of the enumeration represented by the EnumDescriptor.

Returns

Type Description
Object

An object representing the enumeration value corresponding to the specified display caption.

Remarks

Generally there’s no need to use this method, unless you are implementing a custom Property Editor which displays captions of an enumeration, and allows selecting one of them. In this instance, you may need to call this method to determine the enumeration value a user selected.

See Also