EnumDescriptor.ParseCaption(String) Method

Returns the enumeration value corresponding to a particular display caption.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v18.2.dll


public object ParseCaption(
    string caption
Public Function ParseCaption(
    caption As String
) As Object


Type Name Description
String caption

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


Type Description

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


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