Abstract class providing methods for converting from some specified T enum type to Boolean and vice versa.
Definition
Namespace:Telerik.Windows.Controls.Spreadsheet.Controls
Assembly:Telerik.Windows.Controls.Spreadsheet.dll
Type Parameters:
TEnum
The type T of the enumeration.
Syntax:
public abstract class EnumToBooleanConverter<TEnum> : IValueConverter where TEnum : struct
Inheritance: objectEnumToBooleanConverter<TEnum>
Derived Classes:
Implements:
Constructors
protected EnumToBooleanConverter()
Methods
Converts a value.
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
The value produced by the binding source.
targetTypeTypeThe type of the binding target property.
parameterobjectThe converter parameter to use.
cultureCultureInfoThe culture to use in the converter.
Returns:A converted value. If the method returns null, the valid null value is used.
Converts a value.
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
The value that is produced by the binding target.
targetTypeTypeThe type to convert to.
parameterobjectThe converter parameter to use.
cultureCultureInfoThe culture to use in the converter.
Returns:A converted value. If the method returns null, the valid null value is used.