# GrapeCity.Documents.Excel.IValidation

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Excel_IValidation" data-uid="GrapeCity.Documents.Excel.IValidation" class="text-break">IValidation Interface
</h1>
  <div class="markdown level0 summary"><p>Represents data validation for a worksheet range.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Excel.html">GrapeCity.Documents.Excel</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Excel.dll</h6>
  <h5 id="GrapeCity_Documents_Excel_IValidation_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface IValidation</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Interface IValidation</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Excel_IValidation_AlertStyle" data-uid="GrapeCity.Documents.Excel.IValidation.AlertStyle">
          <a class="xref" href="GrapeCity.Documents.Excel.IValidation.AlertStyle.html#GrapeCity_Documents_Excel_IValidation_AlertStyle">AlertStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the validation alert style.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IValidation_ErrorMessage" data-uid="GrapeCity.Documents.Excel.IValidation.ErrorMessage">
          <a class="xref" href="GrapeCity.Documents.Excel.IValidation.ErrorMessage.html#GrapeCity_Documents_Excel_IValidation_ErrorMessage">ErrorMessage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the data validation error message (read or write).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IValidation_ErrorTitle" data-uid="GrapeCity.Documents.Excel.IValidation.ErrorTitle">
          <a class="xref" href="GrapeCity.Documents.Excel.IValidation.ErrorTitle.html#GrapeCity_Documents_Excel_IValidation_ErrorTitle">ErrorTitle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the title of the data-validation error dialog box (read or write).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IValidation_Formula1" data-uid="GrapeCity.Documents.Excel.IValidation.Formula1">
          <a class="xref" href="GrapeCity.Documents.Excel.IValidation.Formula1.html#GrapeCity_Documents_Excel_IValidation_Formula1">Formula1</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value or expression associated with the conditional format or data validation. Can be a constant value, a string value, a cell reference,
or a formula (read-only string).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IValidation_Formula2" data-uid="GrapeCity.Documents.Excel.IValidation.Formula2">
          <a class="xref" href="GrapeCity.Documents.Excel.IValidation.Formula2.html#GrapeCity_Documents_Excel_IValidation_Formula2">Formula2</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value or expression associated with the second part of a conditional format or data validation (read-only string).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IValidation_IMEMode" data-uid="GrapeCity.Documents.Excel.IValidation.IMEMode">
          <a class="xref" href="GrapeCity.Documents.Excel.IValidation.IMEMode.html#GrapeCity_Documents_Excel_IValidation_IMEMode">IMEMode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the description of the Japanese input rules.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IValidation_IgnoreBlank" data-uid="GrapeCity.Documents.Excel.IValidation.IgnoreBlank">
          <a class="xref" href="GrapeCity.Documents.Excel.IValidation.IgnoreBlank.html#GrapeCity_Documents_Excel_IValidation_IgnoreBlank">IgnoreBlank</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether blank values are permitted by the data range validation (read or write).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IValidation_InCellDropdown" data-uid="GrapeCity.Documents.Excel.IValidation.InCellDropdown">
          <a class="xref" href="GrapeCity.Documents.Excel.IValidation.InCellDropdown.html#GrapeCity_Documents_Excel_IValidation_InCellDropdown">InCellDropdown</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether data validation displays a drop-down list that contains acceptable values.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IValidation_InputMessage" data-uid="GrapeCity.Documents.Excel.IValidation.InputMessage">
          <a class="xref" href="GrapeCity.Documents.Excel.IValidation.InputMessage.html#GrapeCity_Documents_Excel_IValidation_InputMessage">InputMessage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the data validation input message (read or write string).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IValidation_InputTitle" data-uid="GrapeCity.Documents.Excel.IValidation.InputTitle">
          <a class="xref" href="GrapeCity.Documents.Excel.IValidation.InputTitle.html#GrapeCity_Documents_Excel_IValidation_InputTitle">InputTitle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the title of the data-validation input dialog box (read or write string).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IValidation_Operator" data-uid="GrapeCity.Documents.Excel.IValidation.Operator">
          <a class="xref" href="GrapeCity.Documents.Excel.IValidation.Operator.html#GrapeCity_Documents_Excel_IValidation_Operator">Operator</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the operator for the conditional format or data validation (read-only).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IValidation_ShowError" data-uid="GrapeCity.Documents.Excel.IValidation.ShowError">
          <a class="xref" href="GrapeCity.Documents.Excel.IValidation.ShowError.html#GrapeCity_Documents_Excel_IValidation_ShowError">ShowError</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the data validation error message will be displayed whenever the user enters invalid data (read or write).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IValidation_ShowInputMessage" data-uid="GrapeCity.Documents.Excel.IValidation.ShowInputMessage">
          <a class="xref" href="GrapeCity.Documents.Excel.IValidation.ShowInputMessage.html#GrapeCity_Documents_Excel_IValidation_ShowInputMessage">ShowInputMessage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the data validation input message is displayed whenever the user selects a cell in the data validation range (read or write).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IValidation_Type" data-uid="GrapeCity.Documents.Excel.IValidation.Type">
          <a class="xref" href="GrapeCity.Documents.Excel.IValidation.Type.html#GrapeCity_Documents_Excel_IValidation_Type">Type</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the data type validation for a range (read-only).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IValidation_Value" data-uid="GrapeCity.Documents.Excel.IValidation.Value">
          <a class="xref" href="GrapeCity.Documents.Excel.IValidation.Value.html#GrapeCity_Documents_Excel_IValidation_Value">Value</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether all the validation criteria are met (that is, if the range contains valid data). This property is read-only.</p>
</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_Documents_Excel_IValidation_Add_GrapeCity_Documents_Excel_ValidationType_GrapeCity_Documents_Excel_ValidationAlertStyle_GrapeCity_Documents_Excel_ValidationOperator_System_Object_System_Object_" data-uid="GrapeCity.Documents.Excel.IValidation.Add(GrapeCity.Documents.Excel.ValidationType,GrapeCity.Documents.Excel.ValidationAlertStyle,GrapeCity.Documents.Excel.ValidationOperator,System.Object,System.Object)">
          <a class="xref" href="GrapeCity.Documents.Excel.IValidation.Add.html#GrapeCity_Documents_Excel_IValidation_Add_GrapeCity_Documents_Excel_ValidationType_GrapeCity_Documents_Excel_ValidationAlertStyle_GrapeCity_Documents_Excel_ValidationOperator_System_Object_System_Object_">Add(ValidationType, ValidationAlertStyle, ValidationOperator, object, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds data validation to the specified range.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IValidation_Delete" data-uid="GrapeCity.Documents.Excel.IValidation.Delete">
          <a class="xref" href="GrapeCity.Documents.Excel.IValidation.Delete.html#GrapeCity_Documents_Excel_IValidation_Delete">Delete()</a>
        </td>
        <td class="markdown level1 summary"><p>Deletes the object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IValidation_FromJson_System_String_" data-uid="GrapeCity.Documents.Excel.IValidation.FromJson(System.String)">
          <a class="xref" href="GrapeCity.Documents.Excel.IValidation.FromJson.html#GrapeCity_Documents_Excel_IValidation_FromJson_System_String_">FromJson(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Generates the data validation from the JSON string.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IValidation_ToJson" data-uid="GrapeCity.Documents.Excel.IValidation.ToJson">
          <a class="xref" href="GrapeCity.Documents.Excel.IValidation.ToJson.html#GrapeCity_Documents_Excel_IValidation_ToJson">ToJson()</a>
        </td>
        <td class="markdown level1 summary"><p>Generates a JSON string from the data validation.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
