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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalendarDateRange__ctor_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDateRange.#ctor*">CalendarDateRange Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalendarDateRange__ctor_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDateRange.#ctor*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalendarDateRange__ctor" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDateRange.#ctor">CalendarDateRange()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDateRange.html">CalendarDateRange</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 CalendarDateRange()</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_CalendarDateRange__ctor_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDateRange.#ctor*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalendarDateRange__ctor_System_DateTime_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDateRange.#ctor(System.DateTime)">CalendarDateRange(DateTime)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDateRange.html">CalendarDateRange</a> class with a single date.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CalendarDateRange(DateTime day)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(day As Date)</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">day</span></td>
      <td><p>The date to add, which means the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDateRange.Start.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalendarDateRange_Start">Start</a> and <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDateRange.End.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalendarDateRange_End">End</a> of this <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDateRange.html">CalendarDateRange</a> instance are the same day.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalendarDateRange__ctor_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDateRange.#ctor*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalendarDateRange__ctor_System_DateTime_System_DateTime_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDateRange.#ctor(System.DateTime,System.DateTime)">CalendarDateRange(DateTime, DateTime)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDateRange.html">CalendarDateRange</a> class with a 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 CalendarDateRange(DateTime start, DateTime end)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(start As Date, [end] As Date)</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 range to be represented.</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 range to be represented.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalendarDateRange__ctor_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDateRange.#ctor*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalendarDateRange__ctor_GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalendarDateRange_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDateRange.#ctor(GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDateRange)">CalendarDateRange(CalendarDateRange)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarDateRange.html">CalendarDateRange</a> class with same data.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CalendarDateRange(CalendarDateRange source)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(source As CalendarDateRange)</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">source</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
