# GrapeCity.Wpf.SpreadSheet.CellType.Editors.DayOfWeekCondition

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DayOfWeekCondition" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DayOfWeekCondition" class="text-break">DayOfWeekCondition Class
</h1>
  <div class="markdown level0 summary"><p>Represents the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DayOfWeekCondition.html">DayOfWeekCondition</a> class.</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.SelectorCondition.html">SelectorCondition</a></div>
    <div class="level2"><span class="xref">DayOfWeekCondition</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_DayOfWeekCondition_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DayOfWeekCondition : SelectorCondition</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DayOfWeekCondition
    Inherits SelectorCondition</code></pre>
  </div>
  <h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DayOfWeekCondition_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>This condition works in <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButtonStyleSelector.html">CalendarDayButtonStyleSelector</a> and <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.WeekTitleStyleSelector.html">WeekTitleStyleSelector</a>.
When you add a <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DayOfWeekCondition.html">DayOfWeekCondition</a> in a <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.WeekTitleStyleSelector.html">WeekTitleStyleSelector</a>,
<a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.WeekTitleStyleSelector.html">WeekTitleStyleSelector</a> only checks the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DayOfWeekCondition.DayOfWeek.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DayOfWeekCondition_DayOfWeek">DayOfWeek</a> property,
the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DayOfWeekCondition.WeekInMonth.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DayOfWeekCondition_WeekInMonth">WeekInMonth</a> property will be ignored.</p>
</div>
  <h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DayOfWeekCondition_examples"><strong>Examples</strong></h5>
  <p>The following xaml demonstrates how to change appearance of <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.WeekTitle.html">WeekTitle</a> and <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButton.html">CalendarDayButton</a>
through <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.WeekTitleStyleSelector.html">WeekTitleStyleSelector</a> and <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDayButtonStyleSelector.html">CalendarDayButtonStyleSelector</a> in xaml.</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_DayOfWeekCondition__ctor" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DayOfWeekCondition.#ctor">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DayOfWeekCondition.-ctor.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DayOfWeekCondition__ctor">DayOfWeekCondition()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DayOfWeekCondition.html">DayOfWeekCondition</a> class.</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_DayOfWeekCondition_DayOfWeek" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DayOfWeekCondition.DayOfWeek">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DayOfWeekCondition.DayOfWeek.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DayOfWeekCondition_DayOfWeek">DayOfWeek</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the day of week which the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DayOfWeekCondition.html">DayOfWeekCondition</a> will be checked.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_DayOfWeekCondition_WeekInMonth" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DayOfWeekCondition.WeekInMonth">
          <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DayOfWeekCondition.WeekInMonth.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_DayOfWeekCondition_WeekInMonth">WeekInMonth</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the weeks in a month which the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.DayOfWeekCondition.html">DayOfWeekCondition</a> will be checked.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
