# C1.Win.Schedule.C1Calendar.MaxSelectionCount

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Schedule_C1Calendar_MaxSelectionCount_" data-uid="C1.Win.Schedule.C1Calendar.MaxSelectionCount*">MaxSelectionCount Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Schedule_C1Calendar_MaxSelectionCount_" data-uid="C1.Win.Schedule.C1Calendar.MaxSelectionCount*"></a>
<h4 id="C1_Win_Schedule_C1Calendar_MaxSelectionCount" data-uid="C1.Win.Schedule.C1Calendar.MaxSelectionCount">MaxSelectionCount</h4>
<div class="markdown level1 summary"><p>Gets or sets the maximum number of days that can be selected in the <a class="xref" href="C1.Win.Schedule.C1Calendar.html">C1Calendar</a> control.
The default value is 42.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[C1Category(&quot;Behavior&quot;)]
[C1Description(&quot;Calendar.MaxSelectionCount&quot;, &quot;Gets or sets the maximum number of days that can be selected in the control.&quot;)]
public int MaxSelectionCount { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;C1Category(&quot;Behavior&quot;)&gt;
&lt;C1Description(&quot;Calendar.MaxSelectionCount&quot;, &quot;Gets or sets the maximum number of days that can be selected in the control.&quot;)&gt;
Public Property MaxSelectionCount As Integer</code></pre>
</div>
<h5 id="C1_Win_Schedule_C1Calendar_MaxSelectionCount_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This property is ignored if C1Calendar control is attached to C1Schedule control and
property value is greater than it is allowable for C1Schedule navigation.</p>
</div>
<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.argumentexception">ArgumentException</a></td>
      <td><p>The value is less than 1.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
