WinUI

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ArithmeticConverter

    Show / Hide Table of Contents

    Class ArithmeticConverter

    Represents the converter that returns the calculated value by performing arithmetic operations using Operator and Operand.

    Inheritance
    System.Object
    ArithmeticConverter
    Implements
    Microsoft.UI.Xaml.Data.IValueConverter
    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 Description
    System.Double

    Operator

    Gets or sets the operator of the ArithmeticConverter.

    Declaration
    public ArithmeticOperator Operator { get; set; }
    Property Value
    Type Description
    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.

    Implements

    Microsoft.UI.Xaml.Data.IValueConverter
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved