# GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayBase.IsDefined

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_HolidayBase_IsDefined_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayBase.IsDefined*">IsDefined Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_HolidayBase_IsDefined_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayBase.IsDefined*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_HolidayBase_IsDefined_System_DateTime_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.HolidayBase.IsDefined(System.DateTime)">IsDefined(DateTime)</h4>
<div class="markdown level1 summary"><p>Gets a value indicating whether the specified date is defined a holiday.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public abstract bool IsDefined(DateTime dateTime)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public MustOverride Function IsDefined(dateTime As Date) As Boolean</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">dateTime</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> value indicates the date.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p><a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> if the date is defined a holiday; otherwise, <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.IHoliday.IsDefined.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_IHoliday_IsDefined_System_DateTime_">IHoliday.IsDefined(DateTime)</a></div>
</div>
