MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.PageReportModel.Validation Namespace / ValidationUtils Class / ValidateLength Method / ValidateLength(ExpressionInfo) Method
GrapeCity.Enterprise.Data.Expressions.ExpressionInfo value to validate.
Example

ValidateLength(ExpressionInfo) Method
Validates an expression value to make sure it is valid double value and against the RDL defined min/max length defaults ("0in","160in").
Syntax
'Declaration
 
Public Overloads Shared Sub ValidateLength( _
   ByVal expression As ExpressionInfo _
) 
 

Parameters

expression
GrapeCity.Enterprise.Data.Expressions.ExpressionInfo value to validate.
Exceptions
ExceptionDescription
Throws if the value is out of range limit.
Example
ExpressionInfo value = ExpressionInfo.FromString("2in");
ValidationUtils.ValidateLength(value);
See Also