Class DoubleToNegativeDoubleConverter
This class implements conversion from positive double to negative double.
Inheritance
Implements
Namespace: Syncfusion.Windows.Tools
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class DoubleToNegativeDoubleConverter : Object, IMultiValueConverter
Constructors
DoubleToNegativeDoubleConverter()
Declaration
public DoubleToNegativeDoubleConverter()
Methods
Convert(Object[], Type, Object, CultureInfo)
This method converts double-value to negative double-value taking into consideration top and bottom thickness.
Declaration
public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object[] | values | Contains list of double value and thickness. |
System.Type | targetType | The type in which the value should be converted. |
System.Object | parameter | Contains name control part for painting out. |
System.Globalization.CultureInfo | culture | The culture for given converting. |
Returns
Type | Description |
---|---|
System.Object | Negative value. |
ConvertBack(Object, Type[], Object, CultureInfo)
Converts a binding target value to the source binding values.
Declaration
public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value that the binding target produces. |
System.Type[] | targetTypes | The array of types to convert to. The array length indicates the number and types of values that are suggested for the method to return. |
System.Object | parameter | The converter parameter to use. |
System.Globalization.CultureInfo | culture | The culture to use in the converter. |
Returns
Type | Description |
---|---|
System.Object[] | An array of values that have been converted from the target value back to the source values. |