Class EnumMemberViewModel
Holds information about an Enum member.
Inheritance
Namespace: Telerik.Windows.Data
Assembly: Telerik.Windows.Data.dll
Syntax
public class EnumMemberViewModel : Object
Constructors
EnumMemberViewModel(Object, String, String)
Initializes a new instance of the Enum
Declaration
public EnumMemberViewModel(object value, string name, string description)
Parameters
System. The value. |
System. The name. |
System. The description. |
EnumMemberViewModel(Object, String, String, String)
Initializes a new instance of the Enum
Declaration
public EnumMemberViewModel(object value, string name, string description, string displayShortName)
Parameters
System. The value. |
System. The name. |
System. The description. |
System. The short name. |
Properties
Description
Returns the Description of the DescriptionAttribute, if present.
Declaration
public string Description { get; }
Property Value
System. The Description of the DescriptionAttribute, if present. |
DisplayName
Returns the first of the following properties that is not null:
- DisplayShortName.
- Description.
- Name.
Declaration
public string DisplayName { get; }
Property Value
System. The display name. |
DisplayShortName
Returns the ShortName of the DisplayAttribute, if present.
Declaration
public string DisplayShortName { get; }
Property Value
System. The ShortName of the DisplayAttribute, if present. |
Name
Gets the name.
Declaration
public string Name { get; }
Property Value
System. The name. |
Value
Gets the value.
Declaration
public object Value { get; }
Property Value
System. The value. |
Methods
ToString()
Declaration
public override string ToString()
Returns
System.
|