ValidateLength(ExpressionInfo,Length,Length) Method
Validates an expression value to make sure it is valid length value and is within the specified min/max range limit.
Parameters
- expression
- An GrapeCity.Enterprise.Data.Expressions.ExpressionInfo value to validate.
- min
- A GrapeCity.ActiveReports.PageReportModel.Length value representing the minium size allowed.
- max
- A GrapeCity.ActiveReports.PageReportModel.Length value representing the maximum size allowed.
ExpressionInfo value = ExpressionInfo.FromString("2in");
Length min = new Length("1in");
Length max = new Length("5in");
ValidationUtils.ValidateLength(value, min, max);