# GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceHoliday" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday" class="text-break">ForceHoliday Class
</h1>
  <div class="markdown level0 summary"><p>An implementation of the forced holidays which will be based on the exact specified dates and not yearly.</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.HolidayBase.html">HolidayBase</a></div>
    <div class="level2"><span class="xref">ForceHoliday</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.inotifypropertychanged">INotifyPropertyChanged</a></div>
    <div><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.IHoliday.html">IHoliday</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></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_ForceHoliday_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ForceHoliday : HolidayBase, INotifyPropertyChanged, IHoliday, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ForceHoliday
    Inherits HolidayBase
    Implements INotifyPropertyChanged, IHoliday, ICloneable</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_Wpf_SpreadSheet_CellType_Editors_ForceHoliday__ctor" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.#ctor">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.-ctor.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceHoliday__ctor">ForceHoliday()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.html">ForceHoliday</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceHoliday__ctor_System_DateTime_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.#ctor(System.DateTime)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.-ctor.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceHoliday__ctor_System_DateTime_">ForceHoliday(DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.html">ForceHoliday</a> class with the specified settings.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceHoliday__ctor_System_DateTime_System_DateTime_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.#ctor(System.DateTime,System.DateTime)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.-ctor.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceHoliday__ctor_System_DateTime_System_DateTime_">ForceHoliday(DateTime, DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.html">ForceHoliday</a> class with the specified settings.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceHoliday__ctor_System_String_System_DateTime_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.#ctor(System.String,System.DateTime)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.-ctor.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceHoliday__ctor_System_String_System_DateTime_">ForceHoliday(string, DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.html">ForceHoliday</a> class with the specified settings.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceHoliday__ctor_System_String_System_DateTime_System_DateTime_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.#ctor(System.String,System.DateTime,System.DateTime)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.-ctor.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceHoliday__ctor_System_String_System_DateTime_System_DateTime_">ForceHoliday(string, DateTime, DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.html">ForceHoliday</a> class with the specified settings.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_Wpf_SpreadSheet_CellType_Editors_ForceHoliday_End" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.End">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.End.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceHoliday_End">End</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the end date of <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.html">ForceHoliday</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceHoliday_HolidayName" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.HolidayName">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.HolidayName.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceHoliday_HolidayName">HolidayName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of the forced holiday.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceHoliday_IsYearly" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.IsYearly">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.IsYearly.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceHoliday_IsYearly">IsYearly</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the holiday implementation is yearly.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceHoliday_Start" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.Start">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.Start.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceHoliday_Start">Start</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the start date of <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.html">ForceHoliday</a>.</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_Wpf_SpreadSheet_CellType_Editors_ForceHoliday_Clone" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.Clone">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.Clone.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceHoliday_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a shallow copy of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.html">ForceHoliday</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceHoliday_IsDefined_System_DateTime_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.IsDefined(System.DateTime)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.IsDefined.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceHoliday_IsDefined_System_DateTime_">IsDefined(DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the specified date is a <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.html">ForceHoliday</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceHoliday_TypeOfDay_System_DateTime_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.TypeOfDay(System.DateTime)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceHoliday.TypeOfDay.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceHoliday_TypeOfDay_System_DateTime_">TypeOfDay(DateTime)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the type of day for the specified date.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
