# GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday" class="text-break">ForceDayOfWeekHoliday Class
</h1>
  <div class="markdown level0 summary"><p>Represents the forced holidays of a specific year which set by day of week rules.</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">ForceDayOfWeekHoliday</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_ForceDayOfWeekHoliday_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ForceDayOfWeekHoliday : HolidayBase, INotifyPropertyChanged, IHoliday, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ForceDayOfWeekHoliday
    Inherits HolidayBase
    Implements INotifyPropertyChanged, IHoliday, ICloneable</code></pre>
  </div>
  <h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>
      The day of week rules includes the months and the weeks and the days in the week defined the days are holidays of this <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.html">ForceDayOfWeekHoliday</a>. The <b>Force</b> means in a specific year specified by the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.Year.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday_Year">Year</a> property.
    </p>
<p>
      For example, you may defined a <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.html">ForceDayOfWeekHoliday</a> on the Wednesday of the first week of January, 2009 by specifying the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.DayOfWeek.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday_DayOfWeek">DayOfWeek</a> to <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DayOfWeeks.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DayOfWeeks_Wednesday">Wednesday</a>, <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.WeekInMonth.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday_WeekInMonth">WeekInMonth</a> to <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Weeks.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_Weeks_FirstWeek">FirstWeek</a>, <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.Month.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday_Month">Month</a> to <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Months.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_Months_January">January</a> and <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.Year.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday_Year">Year</a> to 2009.
      </p>
</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_ForceDayOfWeekHoliday__ctor" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.#ctor">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.-ctor.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday__ctor">ForceDayOfWeekHoliday()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.html">ForceDayOfWeekHoliday</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday__ctor_System_Int32_GrapeCity_Wpf_SpreadSheet_CellType_Editors_Months_GrapeCity_Wpf_SpreadSheet_CellType_Editors_Weeks_GrapeCity_Wpf_SpreadSheet_CellType_Editors_DayOfWeeks_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.#ctor(System.Int32,GrapeCity.Wpf.SpreadSheet.CellType.Editors.Months,GrapeCity.Wpf.SpreadSheet.CellType.Editors.Weeks,GrapeCity.Wpf.SpreadSheet.CellType.Editors.DayOfWeeks)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.-ctor.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday__ctor_System_Int32_GrapeCity_Wpf_SpreadSheet_CellType_Editors_Months_GrapeCity_Wpf_SpreadSheet_CellType_Editors_Weeks_GrapeCity_Wpf_SpreadSheet_CellType_Editors_DayOfWeeks_">ForceDayOfWeekHoliday(int, Months, Weeks, DayOfWeeks)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.html">ForceDayOfWeekHoliday</a> class with the specified day of week rules.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday__ctor_System_String_System_Int32_GrapeCity_Wpf_SpreadSheet_CellType_Editors_Months_GrapeCity_Wpf_SpreadSheet_CellType_Editors_Weeks_GrapeCity_Wpf_SpreadSheet_CellType_Editors_DayOfWeeks_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.#ctor(System.String,System.Int32,GrapeCity.Wpf.SpreadSheet.CellType.Editors.Months,GrapeCity.Wpf.SpreadSheet.CellType.Editors.Weeks,GrapeCity.Wpf.SpreadSheet.CellType.Editors.DayOfWeeks)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.-ctor.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday__ctor_System_String_System_Int32_GrapeCity_Wpf_SpreadSheet_CellType_Editors_Months_GrapeCity_Wpf_SpreadSheet_CellType_Editors_Weeks_GrapeCity_Wpf_SpreadSheet_CellType_Editors_DayOfWeeks_">ForceDayOfWeekHoliday(string, int, Months, Weeks, DayOfWeeks)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.html">ForceDayOfWeekHoliday</a> class with the specific day of week rules.</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_ForceDayOfWeekHoliday_DayOfWeek" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.DayOfWeek">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.DayOfWeek.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday_DayOfWeek">DayOfWeek</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the day of week on which the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.html">ForceDayOfWeekHoliday</a> is defined.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday_HolidayName" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.HolidayName">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.HolidayName.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday_HolidayName">HolidayName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of the weekday holiday.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday_IsYearly" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.IsYearly">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.IsYearly.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday_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_ForceDayOfWeekHoliday_Month" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.Month">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.Month.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday_Month">Month</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the month in which the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.html">ForceDayOfWeekHoliday</a> is defined.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday_WeekInMonth" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.WeekInMonth">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.WeekInMonth.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday_WeekInMonth">WeekInMonth</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the weekday order in which the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.html">ForceDayOfWeekHoliday</a> is defined.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday_Year" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.Year">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.Year.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday_Year">Year</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the year in which the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.html">ForceDayOfWeekHoliday</a> is defined.</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_ForceDayOfWeekHoliday_Clone" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.Clone">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.Clone.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday_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.ForceDayOfWeekHoliday.html">ForceDayOfWeekHoliday</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday_IsDefined_System_DateTime_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.IsDefined(System.DateTime)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.IsDefined.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday_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.ForceDayOfWeekHoliday.html">ForceDayOfWeekHoliday</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday_TypeOfDay_System_DateTime_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.TypeOfDay(System.DateTime)">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ForceDayOfWeekHoliday.TypeOfDay.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_ForceDayOfWeekHoliday_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>
