Class ArithmeticConverter
Represents the converter that returns the calculated value by performing arithmetic operations using Operator
and Operand
.
Inheritance
Implements
Namespace: Syncfusion.Windows.Controls.Notification
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class ArithmeticConverter : Object, IValueConverter
Constructors
ArithmeticConverter()
Declaration
public ArithmeticConverter()
Properties
Operand
Gets or sets the operand of the ArithmeticConverter.
Declaration
public double Operand { get; set; }
Property Value
Type |
---|
System.Double |
Operator
Gets or sets the operator of the ArithmeticConverter.
Declaration
public ArithmeticOperator Operator { get; set; }
Property Value
Type |
---|
ArithmeticOperator |
Methods
Convert(Object, Type, Object, CultureInfo)
It performs arithmetic operations.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo language)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The System.Double value to convert. |
System.Type | targetType | The type of the target property, as a type reference. |
System.Object | parameter | Optional parameter. Not used. |
System.Globalization.CultureInfo | language | The language of the conversion. Not used. |
Returns
Type | Description |
---|---|
System.Object | The value to be passed to the target dependency property. |
ConvertBack(Object, Type, Object, CultureInfo)
Not implemented.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo language)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The target data being passed to the source. |
System.Type | targetType | The type of the target property, as a type reference (System.Type for Microsoft .NET, a TypeName helper struct for Visual C++ component extensions (C++/CX)). |
System.Object | parameter | An optional parameter to be used in the converter logic. |
System.Globalization.CultureInfo | language | The language of the conversion. |
Returns
Type | Description |
---|---|
System.Object | The value to be passed to the source object. |