# GrapeCity.Wpf.SpreadSheet.CellType.Editors.Holiday.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_Holiday__ctor_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Holiday.#ctor*">Holiday Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_Holiday__ctor_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Holiday.#ctor*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_Holiday__ctor" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Holiday.#ctor">Holiday()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Holiday.html">Holiday</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Holiday()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_Holiday__ctor_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Holiday.#ctor*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_Holiday__ctor_System_Int32_System_Int32_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Holiday.#ctor(System.Int32,System.Int32)">Holiday(int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Holiday.html">Holiday</a>
class with the specified settings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Holiday(int month, int day)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(month As Integer, day As Integer)</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.int32">int</a></td>
      <td><span class="parametername">month</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value that represents the holiday month.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">day</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value that represents the holiday day.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td><p><code class="paramref">month</code> value is less than 1 or greater than 12;
<code class="paramref">day</code> value is less than 1 or greater than the last day of the <code class="paramref">month</code> in the leap year.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_Holiday__ctor_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Holiday.#ctor*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_Holiday__ctor_System_String_System_Int32_System_Int32_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Holiday.#ctor(System.String,System.Int32,System.Int32)">Holiday(string, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Holiday.html">Holiday</a>
class with the specified settings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Holiday(string name, int month, int day)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(name As String, month As Integer, day As Integer)</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.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value indicates the name of the force holiday.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">month</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value that represents the holiday month.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">day</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value that represents the holiday day.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td><p><code class="paramref">month</code> value is less than 1 or greater than 12;
<code class="paramref">day</code> value is less than 1 or greater than the last day of the <code class="paramref">month</code> in the leap year.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_Holiday__ctor_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Holiday.#ctor*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_Holiday__ctor_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Holiday.#ctor(System.Int32,System.Int32,System.Int32,System.Int32)">Holiday(int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Holiday.html">Holiday</a>
class with the specified settings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Holiday(int startMonth, int startDay, int endMonth, int endDay)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(startMonth As Integer, startDay As Integer, endMonth As Integer, endDay As Integer)</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.int32">int</a></td>
      <td><span class="parametername">startMonth</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value that represents the starting month of
the holiday.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">startDay</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value that represents the starting day of
the holiday.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">endMonth</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value that represents the ending month of
the holiday.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">endDay</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value that represents the ending day of
the holiday.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td><p><code class="paramref">startMonth</code> or <code class="paramref">endMonth</code> value is less than 1 or greater than 12;
<code class="paramref">startDay</code> value is less than 1 or greater than the last day of the <code class="paramref">startMonth</code> in the leap year.
<code class="paramref">endDay</code> value is less than 1 or greater than the last day of the <code class="paramref">endMonth</code> in the leap year.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_Holiday__ctor_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Holiday.#ctor*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_Holiday__ctor_System_String_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Holiday.#ctor(System.String,System.Int32,System.Int32,System.Int32,System.Int32)">Holiday(string, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.Holiday.html">Holiday</a>
class with a specified holiday date.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Holiday(string name, int startMonth, int startDay, int endMonth, int endDay)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(name As String, startMonth As Integer, startDay As Integer, endMonth As Integer, endDay As Integer)</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.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value indicates the name of the force holiday.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">startMonth</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value that represents the starting month of
the holiday.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">startDay</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value that represents the starting day of
the holiday.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">endMonth</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value that represents the ending month of
the holiday.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">endDay</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value that represents the ending day of
the holiday.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td><p><code class="paramref">startMonth</code> or <code class="paramref">endMonth</code> value is less than 1 or greater than 12;
<code class="paramref">startDay</code> value is less than 1 or greater than the last day of the <code class="paramref">startMonth</code> in the leap year.
<code class="paramref">endDay</code> value is less than 1 or greater than the last day of the <code class="paramref">endMonth</code> in the leap year.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
