Skip to main content
Version: 3.5

DecimalValidationRule

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Validates decimal values.

public class DecimalValidationRule : ValidationRule

Constructors

Instance memberDecimalValidationRule()

Initializes a new instance of the DecimalValidationRule class.

Properties

Instance memberDecimalDigits

Nullable<Int32>: Returns or sets the required number of decimal digits; or null to allow any number of decimals. (Default: null)

Instance memberFormat

Boolean: Returns or sets whether to format the value of the control after validation. (Default: False)

Instance memberMaximumValue

Nullable<Decimal>: Returns or sets the maximum value; or null for no maximum. (Default: null)

Instance memberMinimumValue

Nullable<Decimal>: Returns or sets the minimum value; or null for no minimum. (Default: null)

Instance memberName

String: Returns or sets the name of the validation rule. (Default: "Decimal")

Instance memberRequired

Boolean: Returns or sets whether the control can be empty or its required to have a value. (Default: False)

Methods

Instance memberOnValidated(control)

Invoked after the control has been successfully validated.

ParameterTypeDescription
controlControl

Instance memberOnValidating(control)

Validates the control using the validation rule.

ParameterTypeDescription
controlControl

Returns: Boolean. true if the validation is successful; otherwise false.