An instance of the CalculatorClass class defines the popup calculator of a SftMask control.
The calculator opens when the user types +, -, * or / in a numeric field whose mask uses the C subtoken. It shows the entered numbers with their operators; = shows the total, Enter, Tab or F4 (SftMask.AllowF4 property) enter the total into the field, C clears the entry line and Esc closes the calculator without changing the field. A total the field cannot hold is not entered and the calculator stays open; a division by zero or a result with more than 12 digits before the decimal separator shows E.
Namespace: Softelvdm.SftMaskNET
Assembly: Softelvdm.SftMaskNET
Inheritance
public class CalculatorClass : System.ComponentModel.INotifyPropertyChanged;
Public Class CalculatorClass
Implements System.ComponentModel.INotifyPropertyChangedThis class cannot be instantiated.
![]() | BackColor | Defines the background color of the calculator. |
![]() | ForeColor | Defines the text color of the calculator. |
![]() | FracDigits | Defines the number of fraction digits shown in the calculator. |
![]() | FrameColor | Defines the color of the calculator's border. |
![]() | Lines | Defines the number of lines the calculator keeps. |
![]() | SelectionBackColor | Defines the background color of the selection in the entry line. |
![]() | SelectionForeColor | Defines the text color of the selection in the entry line. |
![]() | TotalBackColor | Defines the background color of the entry line. |
![]() | TotalForeColor | Defines the text color of the entry line. |
![]() | VisibleLines | Defines the number of lines shown without scrolling. |
![]() ![]() | Equals | Determines whether the specified object is equal to the current object. |
![]() ![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. |
![]() ![]() | GetHashCode | Serves as the default hash function. |
![]() ![]() | GetType | Gets the Type of the current instance. |
![]() ![]() | MemberwiseClone | Creates a shallow copy of the current Object. |
![]() ![]() ![]() | ReferenceEquals | Determines whether the specified Object instances are the same instance. |
![]() | ToString | Returns a string that represents the object. |
![]() | PropertyChanged | Occurs when a property of the calculator changes. |
See Also Classes | SftMask/NET 3.0