[]
Gets a value indicating whether this instance of GcDropDownCalculator has an error. This is a dependency property.
public bool HasError { get; }
Public ReadOnly Property HasError As Boolean
| Type | Description |
|---|---|
| bool | true if this instance of GcDropDownCalculator has error; otherwise, false. |
When HasError is true, the GcDropDownCalculator will be in the following error states:
A number is divided by zero. Occurs when dividing a number by zero, or calling Reciprocal to zero.
The DisplayText is "Attempted to divide by zero".
The parameter of a operator is invalid. Occurs when calling SquareRoot to a negative number.
The DisplayText is "Invalid input for function.".
The value is overflow. Occurs when result is out of the range of double.
The DisplayText is "Arithmetic operation resulted in an overflow.".