C# Класс System.Windows.Controls.EnumDisplayNameConverter

Represents a value converter that is used to get the localized name of an enumeration value.
Наследование: IValueConverter
Показать файл Открыть проект

Открытые методы

Метод Описание
Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object

Convertes the value parameter from an enumeration value to the localized name of the enumeration value.

ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object

Converting a localized name back to its enumeration value is impossible. Therefore this method is not implemented.

Описание методов

Convert() публичный Метод

Convertes the value parameter from an enumeration value to the localized name of the enumeration value.
public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object The value of an enum that is to be converted.
targetType Type The type to which the value is to be converted. In this case it is always string.
parameter object A paramter that is not used in this implementation.
culture System.Globalization.CultureInfo The culture information of the current culture, so that parsing can be adjusted to cultural conventions.
Результат object

ConvertBack() публичный Метод

Converting a localized name back to its enumeration value is impossible. Therefore this method is not implemented.
Since this functionality is unsupported, the method always throws a exception.
public ConvertBack ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object Not supported in this implementation.
targetType Type Not supported in this implementation.
parameter object Not supported in this implementation.
culture System.Globalization.CultureInfo Not supported in this implementation.
Результат object