EnumDescriptor.ParseCaption(String) Method

Returns the enumeration value corresponding to a particular display caption.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v18.1.dll

Declaration

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

Parameters

Type Name Description
String caption

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.

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