# FarPoint.Win.Spread.CellType.SpreadMonthCalendar.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_CellType_SpreadMonthCalendar__ctor_" data-uid="FarPoint.Win.Spread.CellType.SpreadMonthCalendar.#ctor*">SpreadMonthCalendar Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_CellType_SpreadMonthCalendar__ctor_" data-uid="FarPoint.Win.Spread.CellType.SpreadMonthCalendar.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_CellType_SpreadMonthCalendar__ctor" data-uid="FarPoint.Win.Spread.CellType.SpreadMonthCalendar.#ctor">SpreadMonthCalendar()</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Win.Spread.CellType.SpreadMonthCalendar.html">SpreadMonthCalendar</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 SpreadMonthCalendar()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="FarPoint_Win_Spread_CellType_SpreadMonthCalendar__ctor_" data-uid="FarPoint.Win.Spread.CellType.SpreadMonthCalendar.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_CellType_SpreadMonthCalendar__ctor_System_String_System_String_System_Globalization_DateTimeFormatInfo_System_String_System_DateTime_" data-uid="FarPoint.Win.Spread.CellType.SpreadMonthCalendar.#ctor(System.String,System.String,System.Globalization.DateTimeFormatInfo,System.String,System.DateTime)">SpreadMonthCalendar(string, string, DateTimeFormatInfo, string, DateTime)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Win.Spread.CellType.SpreadMonthCalendar.html">SpreadMonthCalendar</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 SpreadMonthCalendar(string okText, string cancelText, DateTimeFormatInfo info, string calFormat, DateTime dateDefault)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(okText As String, cancelText As String, info As DateTimeFormatInfo, calFormat As String, dateDefault 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.string">string</a></td>
      <td><span class="parametername">okText</span></td>
      <td><p>A caption for the OK button</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">cancelText</span></td>
      <td><p>A caption for the Cancel button</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.globalization.datetimeformatinfo">DateTimeFormatInfo</a></td>
      <td><span class="parametername">info</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.globalization.datetimeformatinfo">DateTimeFormatInfo</a> object for formatting and displaying <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> values, depending on culture.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">calFormat</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td><span class="parametername">dateDefault</span></td>
      <td><p>A default value</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_CellType_SpreadMonthCalendar__ctor_" data-uid="FarPoint.Win.Spread.CellType.SpreadMonthCalendar.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_CellType_SpreadMonthCalendar__ctor_FarPoint_Win_Spread_CellType_SpreadMonthCalendar_" data-uid="FarPoint.Win.Spread.CellType.SpreadMonthCalendar.#ctor(FarPoint.Win.Spread.CellType.SpreadMonthCalendar)">SpreadMonthCalendar(SpreadMonthCalendar)</h4>
<div class="markdown level1 summary"><p>Creates a new copy from the specified cell type.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public SpreadMonthCalendar(SpreadMonthCalendar g)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(g As SpreadMonthCalendar)</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="FarPoint.Win.Spread.CellType.SpreadMonthCalendar.html">SpreadMonthCalendar</a></td>
      <td><span class="parametername">g</span></td>
      <td><p>Specified button cell type from which to copy</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_CellType_SpreadMonthCalendar__ctor_" data-uid="FarPoint.Win.Spread.CellType.SpreadMonthCalendar.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_CellType_SpreadMonthCalendar__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Win.Spread.CellType.SpreadMonthCalendar.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">SpreadMonthCalendar(SerializationInfo, StreamingContext)</h4>
<div class="markdown level1 summary"><p>Creates a SpreadMonthCalendar from serialization.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public SpreadMonthCalendar(SerializationInfo info, StreamingContext context)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(info As SerializationInfo, context As StreamingContext)</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.runtime.serialization.serializationinfo">SerializationInfo</a></td>
      <td><span class="parametername">info</span></td>
      <td><p>Object that holds the serialized object data</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.streamingcontext">StreamingContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>Contexual information about the source or destination of the serialization</p>
</td>
    </tr>
  </tbody>
</table>
</div>
