Class ColorToInverseColorConverter
This class converts color value to inverse color and vice versa.
Inheritance
System.Object
ColorToInverseColorConverter
Implements
Microsoft.Maui.Controls.IValueConverter
Namespace: Syncfusion.Maui.Core.Converters
Assembly: Syncfusion.Maui.Core.dll
Syntax
public class ColorToInverseColorConverter : Object, IValueConverter
Constructors
ColorToInverseColorConverter()
Declaration
public ColorToInverseColorConverter()
Methods
Convert(Object, Type, Object, CultureInfo)
Converts color value to an inverse color type.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value must be the type of color |
System.Type | targetType | The type of the target property |
System.Object | parameter | An additional parameter for the converter to handle, not used |
System.Globalization.CultureInfo | culture | The culture to use in the converter, not used |
Returns
Type | Description |
---|---|
System.Object | Returns the inverse color value of the color |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | The exception is thrown when the value type is null or not a type of color |
ConvertBack(Object, Type, Object, CultureInfo)
Converts back the inverse color to color type
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value be the type of InverseColor |
System.Type | targetType | The type of the target property |
System.Object | parameter | An additional parameter for the converter to handle, not used |
System.Globalization.CultureInfo | culture | The culture to use in the converter, not used |
Returns
Type | Description |
---|---|
System.Object | Returns the color value of the inverse color |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | The exception is thrown when the value type is null or not a type of inverse color |
Implements
Microsoft.Maui.Controls.IValueConverter