# C1.Win.Calendar.C1DateRangeEdit.MaxValue

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Calendar_C1DateRangeEdit_MaxValue_" data-uid="C1.Win.Calendar.C1DateRangeEdit.MaxValue*">MaxValue Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Calendar_C1DateRangeEdit_MaxValue_" data-uid="C1.Win.Calendar.C1DateRangeEdit.MaxValue*"></a>
<h4 id="C1_Win_Calendar_C1DateRangeEdit_MaxValue" data-uid="C1.Win.Calendar.C1DateRangeEdit.MaxValue">MaxValue</h4>
<div class="markdown level1 summary"><p>Gets or sets the maximum selected date in a range selection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Bindable(BindableSupport.Yes)]
public DateTime? MaxValue { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;Bindable(BindableSupport.Yes)&gt;
Public Property MaxValue As Date?</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</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><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> representing the maximum selected date, or <code>null</code>
if no range is selected.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_Calendar_C1DateRangeEdit_MaxValue_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>When setting this property:</p>
<ul><li>
If <code>null</code>, the current range is cleared.
</li><li>
If a value is provided, a new range is created using the specified
maximum and the current <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.MinValue.html#C1_Win_Calendar_C1DateRangeEdit_MinValue">MinValue</a>.
</li><li>
An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception">ArgumentOutOfRangeException</a> is thrown if the specified value is lower
than the current <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.MinValue.html#C1_Win_Calendar_C1DateRangeEdit_MinValue">MinValue</a>.
</li></ul>
</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.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td><p>Thrown when the assigned value is lower than <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.MinValue.html#C1_Win_Calendar_C1DateRangeEdit_MinValue">MinValue</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
