Class CalculatorClosingEventArgs
The event data for Closing event.
Inheritance
Inherited Members
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 |
---|
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 |
---|
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.