# GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils" data-uid="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils" class="text-break">ValidationUtils Class
</h1>
  <div class="markdown level0 summary"><p>Represents a set of methods for validating values of general data types.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">ValidationUtils</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Validation.html">GrapeCity.ActiveReports.PageReportModel.Validation</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Core.Rdl.dll</h6>
  <h5 id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class ValidationUtils</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils__ctor" data-uid="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.#ctor">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.-ctor.html#GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils__ctor">ValidationUtils()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_Validate_GrapeCity_ActiveReports_PageReportModel_Length_" data-uid="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.Validate(GrapeCity.ActiveReports.PageReportModel.Length)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.Validate.html#GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_Validate_GrapeCity_ActiveReports_PageReportModel_Length_">Validate(Length)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates a length value against the RDL defined min/max length defaults (&quot;0in&quot;,&quot;160in&quot;).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateBoolean_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_" data-uid="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateBoolean(GrapeCity.Enterprise.Data.Expressions.ExpressionInfo)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateBoolean.html#GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateBoolean_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_">ValidateBoolean(ExpressionInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates an expression value to make sure any literal booleans can be evaluate to either <code>true</code> or <code>false</code>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateDouble_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_System_Double_System_Double_" data-uid="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateDouble(GrapeCity.Enterprise.Data.Expressions.ExpressionInfo,System.Double,System.Double)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateDouble.html#GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateDouble_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_System_Double_System_Double_">ValidateDouble(ExpressionInfo, double, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates an expression value to make sure it is valid and is within the specified min/max values.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateDouble_System_Double_System_Double_System_Double_" data-uid="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateDouble(System.Double,System.Double,System.Double)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateDouble.html#GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateDouble_System_Double_System_Double_System_Double_">ValidateDouble(double, double, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates a double value to make sure it is valid and is within the specified min/max range limit.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateEnum_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_System_Type_" data-uid="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateEnum(GrapeCity.Enterprise.Data.Expressions.ExpressionInfo,System.Type)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateEnum.html#GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateEnum_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_System_Type_">ValidateEnum(ExpressionInfo, Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates an expression value to make sure it is valid enum value and against the specified type.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateEnum_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_System_Type_System_Collections_Generic_IList_System_String__" data-uid="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateEnum(GrapeCity.Enterprise.Data.Expressions.ExpressionInfo,System.Type,System.Collections.Generic.IList{System.String})">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateEnum.html#GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateEnum_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_System_Type_System_Collections_Generic_IList_System_String__">ValidateEnum(ExpressionInfo, Type, IList&lt;string&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates an expression value to make sure it is valid enum value and against the specified type.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateEnum_System_Object_System_Type_" data-uid="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateEnum(System.Object,System.Type)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateEnum.html#GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateEnum_System_Object_System_Type_">ValidateEnum(object, Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates an enum value against the specified type.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateInteger_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_System_Int32_System_Int32_" data-uid="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateInteger(GrapeCity.Enterprise.Data.Expressions.ExpressionInfo,System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateInteger.html#GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateInteger_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_System_Int32_System_Int32_">ValidateInteger(ExpressionInfo, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Valiates an expression value to make sure it is valid integer value and is within the specified min/max values.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateInteger_System_Int32_" data-uid="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateInteger(System.Int32)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateInteger.html#GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateInteger_System_Int32_">ValidateInteger(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates an integer value to make sure it is valid and is within the specified usual default RDL min/max range limit (0, int.maxvalue).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateInteger_System_Int32_System_Int32_System_Int32_" data-uid="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateInteger(System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateInteger.html#GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateInteger_System_Int32_System_Int32_System_Int32_">ValidateInteger(int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates an integer value to make sure it is valid and is within the specified min/max range limit.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateInteger_System_Nullable_System_Int32__" data-uid="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateInteger(System.Nullable{System.Int32})">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateInteger.html#GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateInteger_System_Nullable_System_Int32__">ValidateInteger(int?)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates a nullable integer value to make sure it is valid and is within the specified usual default RDL min/max range limit (0, int.maxvalue).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateInteger_System_Nullable_System_Int32__System_Int32_System_Int32_" data-uid="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateInteger(System.Nullable{System.Int32},System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateInteger.html#GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateInteger_System_Nullable_System_Int32__System_Int32_System_Int32_">ValidateInteger(int?, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates a nullable integer value to make sure it is valid and is within the specified min/max range limit.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateLength_GrapeCity_ActiveReports_PageReportModel_Length_GrapeCity_ActiveReports_PageReportModel_Length_GrapeCity_ActiveReports_PageReportModel_Length_GrapeCity_ActiveReports_PageReportModel_Length___" data-uid="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateLength(GrapeCity.ActiveReports.PageReportModel.Length,GrapeCity.ActiveReports.PageReportModel.Length,GrapeCity.ActiveReports.PageReportModel.Length,GrapeCity.ActiveReports.PageReportModel.Length[])">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateLength.html#GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateLength_GrapeCity_ActiveReports_PageReportModel_Length_GrapeCity_ActiveReports_PageReportModel_Length_GrapeCity_ActiveReports_PageReportModel_Length_GrapeCity_ActiveReports_PageReportModel_Length___">ValidateLength(Length, Length, Length, params Length[])</a>
        </td>
        <td class="markdown level1 summary"><p>Validates a length value to make sure it is valid and is within the specified min/max range limit.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateLength_GrapeCity_ActiveReports_PageReportModel_Length_GrapeCity_ActiveReports_PageReportModel_Length___" data-uid="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateLength(GrapeCity.ActiveReports.PageReportModel.Length,GrapeCity.ActiveReports.PageReportModel.Length[])">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateLength.html#GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateLength_GrapeCity_ActiveReports_PageReportModel_Length_GrapeCity_ActiveReports_PageReportModel_Length___">ValidateLength(Length, params Length[])</a>
        </td>
        <td class="markdown level1 summary"><p>Validates a length value against the RDL defined min/max length defaults (&quot;0in&quot;,&quot;160in&quot;).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateLength_GrapeCity_ActiveReports_PageReportModel_Length_System_Boolean_" data-uid="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateLength(GrapeCity.ActiveReports.PageReportModel.Length,System.Boolean)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateLength.html#GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateLength_GrapeCity_ActiveReports_PageReportModel_Length_System_Boolean_">ValidateLength(Length, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates a length value against the RDL defined min/max length defaults (&quot;0in&quot;,&quot;160in&quot;).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateLength_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_" data-uid="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateLength(GrapeCity.Enterprise.Data.Expressions.ExpressionInfo)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateLength.html#GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateLength_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_">ValidateLength(ExpressionInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates an expression value to make sure it is valid double value and against the RDL defined min/max length defaults (&quot;0in&quot;,&quot;160in&quot;).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateLength_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_GrapeCity_ActiveReports_PageReportModel_Length_GrapeCity_ActiveReports_PageReportModel_Length_" data-uid="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateLength(GrapeCity.Enterprise.Data.Expressions.ExpressionInfo,GrapeCity.ActiveReports.PageReportModel.Length,GrapeCity.ActiveReports.PageReportModel.Length)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.ValidateLength.html#GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_ValidateLength_GrapeCity_Enterprise_Data_Expressions_ExpressionInfo_GrapeCity_ActiveReports_PageReportModel_Length_GrapeCity_ActiveReports_PageReportModel_Length_">ValidateLength(ExpressionInfo, Length, Length)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates an expression value to make sure it is valid length value and is within the specified min/max range limit.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_Validate__1___0_" data-uid="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.Validate``1(``0)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.Validate.html#GrapeCity_ActiveReports_PageReportModel_Validation_ValidationUtils_Validate__1___0_">Validate&lt;T&gt;(T)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates a value to make sure it is valid enum value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.Rdl.Tools.CollectionExtensions.AddRange.html#GrapeCity_ActiveReports_Rdl_Tools_CollectionExtensions_AddRange__2___0_System_Collections_Generic_IEnumerable___1__">CollectionExtensions.AddRange&lt;TCollection, TItem&gt;(TCollection, IEnumerable&lt;TItem&gt;)</a>
  </div>

</div>
