New to Telerik UI for WinForms? Start a free 30-day trial

Represents a descriptor for an enum value, providing access to its value and description.

Definition

Namespace:Telerik.WinControls.UI.Data

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class EnumDescriptor

Inheritance: objectEnumDescriptor

Constructors

Initializes a new instance of the EnumDescriptor class.

C#
public EnumDescriptor(Type source, object value)
Parameters:sourceType

The enum type.

valueobject

The enum value.

Properties

Gets or sets the description of the enum value.

C#
public string Description { get; set; }

Gets the enum value.

C#
public object Value { get; }