ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.PageReportModel.Validation Namespace / ValidationUtils Class / ValidateDouble Method / ValidateDouble(ExpressionInfo,Double,Double) Method
An GrapeCity.Enterprise.Data.Expressions.ExpressionInfo value to validate.
A System.Double value representing the minimun size allowed.
A System.Double value representing the maximum size allowed.
Example

In This Topic
    ValidateDouble(ExpressionInfo,Double,Double) Method
    In This Topic
    Validates an expression value to make sure it is valid and is within the specified min/max values.
    Syntax
    'Declaration
     
    Public Overloads Shared Sub ValidateDouble( _
       ByVal expression As ExpressionInfo, _
       ByVal min As Double, _
       ByVal max As Double _
    ) 
    public static void ValidateDouble( 
       ExpressionInfo expression,
       double min,
       double max
    )

    Parameters

    expression
    An GrapeCity.Enterprise.Data.Expressions.ExpressionInfo value to validate.
    min
    A System.Double value representing the minimun size allowed.
    max
    A System.Double value representing the maximum size allowed.
    Exceptions
    ExceptionDescription
    Throws if the value is out of range limit.
    Example
    ExpressionInfo value = ExpressionInfo.FromString("2.5");
    ValidationUtils.ValidateDouble(value, 0.0d, 5.0d);
    See Also