[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateDouble

ValidateDouble Method

ValidateDouble(double, double, double)

Validates a double value to make sure it is valid and is within the specified min/max range limit.

Declaration
public static void ValidateDouble(double value, double min, double max)
Parameters
Type Name Description
double value

A double value to validate.

double min

A double value representing the minimum integer allowed.

double max

A double value representing the maximum integer allowed.

Exceptions
Type Condition
ReportDefinitionException

Throws if the value is out of range limit.

ValidateDouble(ExpressionInfo, double, double)

Validates an expression value to make sure it is valid and is within the specified min/max values.

Declaration
public static void ValidateDouble(ExpressionInfo expression, double min, double max)
Parameters
Type Name Description
ExpressionInfo expression

An ExpressionInfo value to validate.

double min

A double value representing the minimun size allowed.

double max

A double value representing the maximum size allowed.

Examples
ExpressionInfo value = ExpressionInfo.FromString("2.5");
ValidationUtils.ValidateDouble(value, 0.0d, 5.0d);
Exceptions
Type Condition
ReportDefinitionException

Throws if the value is out of range limit.