Class ColorToWordKnownColorsConverter
Represnts a class that converts color to word known name.
Inheritance
System.Object
ColorToWordKnownColorsConverter
Implements
System.Windows.Data.IValueConverter
Namespace: Syncfusion.Windows.Tools
Assembly: Syncfusion.Shared.WPF.dll
Syntax
public class ColorToWordKnownColorsConverter : Object, IValueConverter
Constructors
ColorToWordKnownColorsConverter()
Declaration
public ColorToWordKnownColorsConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
Converts color to word known colors.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Color to be converted. |
System.Type | targetType | Type, the color is to be converted to. |
System.Object | parameter | Does not matter. |
System.Globalization.CultureInfo | culture | Currently used culture. Not used here. |
Returns
Type | Description |
---|---|
System.Object | Converted word known colors. |
ConvertBack(Object, Type, Object, CultureInfo)
Converts a value.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Color to be converted. |
System.Type | targetType | Type, the color is to be converted to. |
System.Object | parameter | Does not matter. |
System.Globalization.CultureInfo | culture | Currently used culture. Not used here. |
Returns
Type | Description |
---|---|
System.Object | Converted color. |
Implements
System.Windows.Data.IValueConverter