# GrapeCity.Wpf.SpreadSheet.CellType.Editors.InputTextValidator

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_InputTextValidator" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.InputTextValidator" class="text-break">InputTextValidator Class
</h1>
  <div class="markdown level0 summary"><p>Represents whether it is valid when <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDateTime.Value.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDateTime_Value">GcDateTime.Value</a> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</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"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ControlValidator.html">ControlValidator</a></div>
    <div class="level2"><span class="xref">InputTextValidator</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.html">GrapeCity.Wpf.SpreadSheet.CellType.Editors</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Wpf.SpreadSheet.CellType.dll</h6>
  <h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_InputTextValidator_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class InputTextValidator : ControlValidator</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public NotInheritable Class InputTextValidator
    Inherits ControlValidator</code></pre>
  </div>
  <h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_InputTextValidator_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>It only supports <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDateTime.html">GcDateTime</a> control. If doesn't input anything, <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDateTime.Value.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDateTime_Value">GcDateTime.Value</a> is always valid.
If input something and <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDateTime.Value.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDateTime_Value">GcDateTime.Value</a> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>, the result is invalid.</p>
</div>
  <h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_InputTextValidator_examples"><strong>Examples</strong></h5>
  <p>The following xaml demonstrates how to use <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ControlValidator.html">ControlValidator</a> to validate control value.</p>

  <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_Wpf_SpreadSheet_CellType_Editors_InputTextValidator__ctor" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.InputTextValidator.#ctor">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.InputTextValidator.-ctor.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_InputTextValidator__ctor">InputTextValidator()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.InputTextValidator.html">InputTextValidator</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_InputTextValidator__ctor_System_Object_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.InputTextValidator.#ctor(System.Object)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.InputTextValidator.-ctor.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_InputTextValidator__ctor_System_Object_">InputTextValidator(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.InputTextValidator.html">InputTextValidator</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
