menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface ICalculatorEngine - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Interface ICalculatorEngine

    This interface is implemented by the Calculator Engine class to provide a common interface for interacting with the Calculator Control.

    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public interface ICalculatorEngine
    Remarks

    The Calculator Control can work with any class that implements this interface.

    Properties

    NumberFormatInfoObject

    Gets or sets the NumberFormatInfo object.

    Declaration
    NumberFormatInfo NumberFormatInfoObject { get; set; }
    Property Value
    Type
    System.Globalization.NumberFormatInfo

    Methods

    GetValue()

    The Value of the Calculator Engine at this point.

    Declaration
    CalculatorValue GetValue()
    Returns
    Type Description
    CalculatorValue

    Returns Calculator value

    HandleAction(CalcActions)

    This method allows the Calculator Control to tell the Calculator Engine to perform an action.

    Declaration
    bool HandleAction(CalcActions action)
    Parameters
    Type Name Description
    CalcActions action

    The action to be performed.

    Returns
    Type Description
    System.Boolean

    Return bool value

    Reset()

    Resets the Calculator Engine.

    Declaration
    void Reset()
    Remarks

    This method is for resetting the Calculator Engine. This is useful when switching layouts for example.

    SetValue(CalculatorValue)

    Sets the value of the Calculator Engine.

    Declaration
    void SetValue(CalculatorValue value)
    Parameters
    Type Name Description
    CalculatorValue value

    The value.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved