New to Telerik UI for WPFStart a free 30-day trial

Holds information about an Enum member.

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Syntax:

C#
public class EnumMemberViewModel

Inheritance: objectEnumMemberViewModel

Derived Classes: FlagEnumValueViewModel

Constructors

Initializes a new instance of the EnumMemberViewModel class.

C#
public EnumMemberViewModel(object value, string name, string description, string displayShortName)
Parameters:valueobject

The value.

namestring

The name.

descriptionstring

The description.

displayShortNamestring

The short name.

Initializes a new instance of the EnumMemberViewModel class.

C#
public EnumMemberViewModel(object value, string name, string description)
Parameters:valueobject

The value.

namestring

The name.

descriptionstring

The description.

Properties

Returns the Description of the DescriptionAttribute, if present.

C#
public string Description { get; }
Property Value:

The Description of the DescriptionAttribute, if present.

Returns the first of the following properties that is not null:

  • DisplayShortName.
  • Description.
  • Name.
C#
public string DisplayName { get; }
Property Value:

The display name.

Returns the ShortName of the DisplayAttribute, if present.

C#
public string DisplayShortName { get; }
Property Value:

The ShortName of the DisplayAttribute, if present.

Gets the name.

C#
public string Name { get; }
Property Value:

The name.

Gets the value.

C#
public object Value { get; }
Property Value:

The value.

Methods

C#
public override string ToString()
Returns:

string

Overrides: object.ToString()