# FarPoint.Win.Spread.CellType.DateTimeCellType.SetCalendarText

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_CellType_DateTimeCellType_SetCalendarText_" data-uid="FarPoint.Win.Spread.CellType.DateTimeCellType.SetCalendarText*">SetCalendarText Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_CellType_DateTimeCellType_SetCalendarText_" data-uid="FarPoint.Win.Spread.CellType.DateTimeCellType.SetCalendarText*"></a>
<h4 id="FarPoint_Win_Spread_CellType_DateTimeCellType_SetCalendarText_System_String___System_String___System_String___System_String___System_String_System_String_" data-uid="FarPoint.Win.Spread.CellType.DateTimeCellType.SetCalendarText(System.String[],System.String[],System.String[],System.String[],System.String,System.String)">SetCalendarText(string[], string[], string[], string[], string, string)</h4>
<div class="markdown level1 summary"><p>Sets the various text elements for the pop-up calendar,<br>
including the day and month names and the button text.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Browsable(false)]
public void SetCalendarText(string[] dayNames, string[] monthNames, string[] shortdayNames, string[] shortmonthNames, string okText, string cancelText)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;Browsable(False)&gt;
Public Sub SetCalendarText(dayNames As String(), monthNames As String(), shortdayNames As String(), shortmonthNames As String(), okText As String, cancelText As String)</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">dayNames</span></td>
      <td><p>Set of day names</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>[]</td>
      <td><span class="parametername">monthNames</span></td>
      <td><p>Set of month names</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>[]</td>
      <td><span class="parametername">shortdayNames</span></td>
      <td><p>Set of abbreviated day names</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>[]</td>
      <td><span class="parametername">shortmonthNames</span></td>
      <td><p>Set of abbreviated month names</p>
</td>
    </tr>
    <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>Text 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>Text for the Cancel button</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_CellType_DateTimeCellType_SetCalendarText_" data-uid="FarPoint.Win.Spread.CellType.DateTimeCellType.SetCalendarText*"></a>
<h4 id="FarPoint_Win_Spread_CellType_DateTimeCellType_SetCalendarText_System_String___System_String___System_String___System_String___System_String_System_String_System_String_" data-uid="FarPoint.Win.Spread.CellType.DateTimeCellType.SetCalendarText(System.String[],System.String[],System.String[],System.String[],System.String,System.String,System.String)">SetCalendarText(string[], string[], string[], string[], string, string, string)</h4>
<div class="markdown level1 summary"><p>Sets the various text elements for the pop-up calendar,<br>
including the day and month names, the today text, and the button text.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Browsable(false)]
public void SetCalendarText(string[] dayNames, string[] monthNames, string[] shortdayNames, string[] shortmonthNames, string okText, string cancelText, string currentText)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;Browsable(False)&gt;
Public Sub SetCalendarText(dayNames As String(), monthNames As String(), shortdayNames As String(), shortmonthNames As String(), okText As String, cancelText As String, currentText As String)</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">dayNames</span></td>
      <td><p>Set of day names</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>[]</td>
      <td><span class="parametername">monthNames</span></td>
      <td><p>Set of month names</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>[]</td>
      <td><span class="parametername">shortdayNames</span></td>
      <td><p>Set of abbreviated day names</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>[]</td>
      <td><span class="parametername">shortmonthNames</span></td>
      <td><p>Set of abbreviated month names</p>
</td>
    </tr>
    <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>Text 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>Text for the Cancel 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">currentText</span></td>
      <td><p>Text for the Today button or Now button</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_CellType_DateTimeCellType_SetCalendarText_" data-uid="FarPoint.Win.Spread.CellType.DateTimeCellType.SetCalendarText*"></a>
<h4 id="FarPoint_Win_Spread_CellType_DateTimeCellType_SetCalendarText_System_String_System_String_" data-uid="FarPoint.Win.Spread.CellType.DateTimeCellType.SetCalendarText(System.String,System.String)">SetCalendarText(string, string)</h4>
<div class="markdown level1 summary"><p>Sets the various text elements for the pop-up calendar,
namely the button text.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Browsable(false)]
public void SetCalendarText(string okText, string cancelText)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;Browsable(False)&gt;
Public Sub SetCalendarText(okText As String, cancelText As String)</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>Text 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>Text for the Cancel button</p>
</td>
    </tr>
  </tbody>
</table>
</div>
