Class
EnumMemberViewModel

Holds information about an Enum member.

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Syntax:

cs-api-definition
public class EnumMemberViewModel

Inheritance: objectEnumMemberViewModel

Derived Classes: FlagEnumValueViewModel

Constructors

EnumMemberViewModel(object, string, string)

Initializes a new instance of the EnumMemberViewModel class.

Declaration

cs-api-definition
public EnumMemberViewModel(object value, string name, string description)

Parameters

value

object

The value.

name

string

The name.

description

string

The description.

EnumMemberViewModel(object, string, string, string)

Initializes a new instance of the EnumMemberViewModel class.

Declaration

cs-api-definition
public EnumMemberViewModel(object value, string name, string description, string displayShortName)

Parameters

value

object

The value.

name

string

The name.

description

string

The description.

displayShortName

string

The short name.

Properties

Description

Returns the Description of the DescriptionAttribute, if present.

Declaration

cs-api-definition
public string Description { get; }

Property Value

string

The Description of the DescriptionAttribute, if present.

DisplayName

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

  • DisplayShortName.
  • Description.
  • Name.

Declaration

cs-api-definition
public string DisplayName { get; }

Property Value

string

The display name.

DisplayShortName

Returns the ShortName of the DisplayAttribute, if present.

Declaration

cs-api-definition
public string DisplayShortName { get; }

Property Value

string

The ShortName of the DisplayAttribute, if present.

Name

Gets the name.

Declaration

cs-api-definition
public string Name { get; }

Property Value

string

The name.

Value

Gets the value.

Declaration

cs-api-definition
public object Value { get; }

Property Value

object

The value.

Methods

ToString()

Declaration

cs-api-definition
public override string ToString()

Returns

string

Overrides object.ToString()