HeaderPane
Main
Hide
Share Link
Print

CalculatorClass Class

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

Syntax

public class CalculatorClass : System.ComponentModel.INotifyPropertyChanged;
Public Class CalculatorClass
    Implements System.ComponentModel.INotifyPropertyChanged

Constructors

This class cannot be instantiated.

Properties

PublicBackColorDefines the background color of the calculator.
PublicForeColorDefines the text color of the calculator.
PublicFracDigitsDefines the number of fraction digits shown in the calculator.
PublicFrameColorDefines the color of the calculator's border.
PublicLinesDefines the number of lines the calculator keeps.
PublicSelectionBackColorDefines the background color of the selection in the entry line.
PublicSelectionForeColorDefines the text color of the selection in the entry line.
PublicTotalBackColorDefines the background color of the entry line.
PublicTotalForeColorDefines the text color of the entry line.
PublicVisibleLinesDefines the number of lines shown without scrolling.

Methods

PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicToStringReturns a string that represents the object.

Events

PublicPropertyChangedOccurs when a property of the calculator changes.

See Also Classes | SftMask/NET 3.0