# GrapeCity.Wpf.SpreadSheet.CellType.Editors.BlackoutDatesCollection.Contains

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_BlackoutDatesCollection_Contains_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.BlackoutDatesCollection.Contains*">Contains Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_BlackoutDatesCollection_Contains_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.BlackoutDatesCollection.Contains*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_BlackoutDatesCollection_Contains_System_DateTime_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.BlackoutDatesCollection.Contains(System.DateTime)">Contains(DateTime)</h4>
<div class="markdown level1 summary"><p>Returns a value that represents whether this collection contains the specified date.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool Contains(DateTime date)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Contains([date] 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">date</span></td>
      <td><p>The date to search for.</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 collection contains the specified date; otherwise, <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_BlackoutDatesCollection_Contains_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.BlackoutDatesCollection.Contains*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_BlackoutDatesCollection_Contains_System_DateTime_System_DateTime_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.BlackoutDatesCollection.Contains(System.DateTime,System.DateTime)">Contains(DateTime, DateTime)</h4>
<div class="markdown level1 summary"><p>Returns a value that represents whether this collection contains the specified range of dates.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool Contains(DateTime start, DateTime end)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Contains(start As Date, [end] 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">start</span></td>
      <td><p>The start of the date range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">end</span></td>
      <td><p>The end of the date range.</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 all dates in the range are contained in the collection; otherwise, <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_BlackoutDatesCollection_Contains_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.BlackoutDatesCollection.Contains*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_BlackoutDatesCollection_Contains_GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalendarDateRange_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.BlackoutDatesCollection.Contains(GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDateRange)">Contains(CalendarDateRange)</h4>
<div class="markdown level1 summary"><p>Checks if a GrapeCity.Windows.InputMan.CalendarDateRange is in the collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool Contains(CalendarDateRange range)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Contains(range As CalendarDateRange) 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="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDateRange.html">CalendarDateRange</a></td>
      <td><span class="parametername">range</span></td>
      <td><p>The GrapeCity.Windows.InputMan.CalendarDateRange.</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 all dates in the GrapeCity.Windows.InputMan.CalendarDateRange are contained in the collection; otherwise, <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
