WinForms

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

    Show / Hide Table of Contents

    Class CalculatorValueCalculatedEventArgs

    The event data for CalculatorControl.ValueCalculated event.

    Inheritance
    System.Object
    System.EventArgs
    CalculatorValueCalculatedEventArgs
    Inherited Members
    System.EventArgs.Empty
    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 CalculatorValueCalculatedEventArgs : EventArgs
    Remarks

    This event is raised whenever there is a change in the internal value of the CalculatorControl. This event data class contains the necessary pieces of information for the handlers to get the new value of the Calculator Control.

    This class also has members that provide information about the current error state of the Calculator Control.

    The Memory value of the calculator can also be got from this class.

    Constructors

    CalculatorValueCalculatedEventArgs(CalculatorValue, Boolean, String, CalcActions)

    Initializes a new instance of the CalculatorValueCalculatedEventArgs class.

    Declaration
    public CalculatorValueCalculatedEventArgs(CalculatorValue val, bool errorCondition, string message, CalcActions lastAction)
    Parameters
    Type Name Description
    CalculatorValue val

    The Value of the CalculatorControl.

    System.Boolean errorCondition

    The error condition.

    System.String message

    The feedback messsage.

    CalcActions lastAction

    The last action that was performed.

    Remarks

    This constructor sets all the required values for the CalculatorValueCalculatedEventArgs.

    Properties

    ErrorCondition

    Gets or sets a value indicating whether the error condition of the Calculator Control if any.

    Declaration
    public bool ErrorCondition { get; set; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    This message has to be used in conjunction with the Message value set by the CalculatorControl.

    LastAction

    Gets or sets the last action that was performed.

    Declaration
    public CalcActions LastAction { get; set; }
    Property Value
    Type Description
    CalcActions
    Remarks

    This value has to be read in conjunction with the error condition of the Calculator Control and the error message. The memory value can also be accessed through this class.

    MemoryValue

    Gets or sets the memory value of the Calculator Control.

    Declaration
    public double MemoryValue { get; set; }
    Property Value
    Type Description
    System.Double
    Remarks

    This value is to be used along with the Value property of the CalculatorControl as well as the error condition if any.

    Message

    Gets or sets the custom error message when in error mode.

    Declaration
    public string Message { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    This message has to be used in conjunction with the ErrorCondition value set by the Calculator Control.

    Value

    Gets or sets the CalculatorValue object that contains the value of the Calculator Control.

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

    This value has to be read in conjunction with the error condition of the Calculator Control and the error message. The memory value can also be accessed through this class.

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