Class ArithmeticConverter
Represents the converter that returns the calculated value by performing arithmetic operations using Operator
and Operand
.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Notifications
Assembly: Syncfusion.Notifications.WinUI.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, String)
It performs arithmetic operations.
Declaration
public object Convert(object value, Type targetType, object parameter, string 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.String | 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, String)
Not implemented.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, string 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.String | language | The language of the conversion. |
Returns
Type | Description |
---|---|
System.Object | The value to be passed to the source object. |