Class ColorToBrushConverter
Represents the converter that converts color values to brush values.
Inheritance
System.Object
ColorToBrushConverter
Implements
System.Windows.Data.IValueConverter
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public class ColorToBrushConverter : Object, IValueConverter
Constructors
ColorToBrushConverter()
Declaration
public ColorToBrushConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
Converts a color value to a brush value.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The color value to convert. |
System.Type | targetType | This parameter is not used. |
System.Object | parameter | This parameter is not used. |
System.Globalization.CultureInfo | culture | This parameter is not used. |
Returns
Type | Description |
---|---|
System.Object | Returns a brush value. |
ConvertBack(Object, Type, Object, CultureInfo)
Converts a brush value to a color value.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The brush value to convert. |
System.Type | targetType | This parameter is not used. |
System.Object | parameter | This parameter is not used. |
System.Globalization.CultureInfo | culture | This parameter is not used. |
Returns
Type | Description |
---|---|
System.Object | Returns a color value. |
Implements
System.Windows.Data.IValueConverter