WinForms

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

    Show / Hide Table of Contents

    Class CalculatorClosingEventArgs

    The event data for Closing event.

    Inheritance
    System.Object
    CalculatorClosingEventArgs
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class CalculatorClosingEventArgs
    Remarks

    This event is raised by the PopupCalculator class when in Popup mode. The event is raised when the Popup is being closed after the Calculator was displayed.

    Constructors

    CalculatorClosingEventArgs(CalculatorCloseType, CalculatorValue)

    Initializes a new instance of the CalculatorClosingEventArgs class.

    Declaration
    public CalculatorClosingEventArgs(CalculatorCloseType closeType, CalculatorValue finalValue)
    Parameters
    Type Name Description
    CalculatorCloseType closeType

    Specifies if the '=' button was clicked.

    CalculatorValue finalValue

    The final value of the calculator.

    Remarks

    This constructor for the CalculatorClosingEventArgs class takes the two required pieces of information for this class as parameters. The first parameter specifies if the Equal to button was clicked. What this means is that the user chose to click the Equal button and complete the calculation. The CalculatorValue object contains the final calculated value of the Calculator Control.

    Properties

    CloseType

    Gets whether the equal button was clicked.

    Declaration
    public CalculatorCloseType CloseType { get; }
    Property Value
    Type Description
    CalculatorCloseType
    Remarks

    The behavior of the CalculatorControl in PopupMode is to close when the Equal to button is clicked. This property specifies if the Equal to button was clicked by the user.

    FinalValue

    Gets the final value of the calculator.

    Declaration
    public CalculatorValue FinalValue { get; }
    Property Value
    Type Description
    CalculatorValue
    Remarks

    The final value of the CalculatorControl is the value that the Syncfusion.Windows.Forms.Tools.CalculatorControl.Engine object had when the Popup Calculator Control was closed.

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