# C1.Win.Calendar.DateTimeRange

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Calendar_DateTimeRange" data-uid="C1.Win.Calendar.DateTimeRange" class="text-break">DateTimeRange Class
</h1>
  <div class="markdown level0 summary"><p>Represents a date range defined by a minValue and maxValue <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a>.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">DateTimeRange</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.inotifypropertychanged">INotifyPropertyChanged</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Calendar.html">C1.Win.Calendar</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.Calendar.4.8.dll</h6>
  <h5 id="C1_Win_Calendar_DateTimeRange_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(DateTimeRangeConverter))]
public class DateTimeRange : INotifyPropertyChanged</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(DateTimeRangeConverter))&gt;
Public Class DateTimeRange
    Implements INotifyPropertyChanged</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Calendar_DateTimeRange__ctor" data-uid="C1.Win.Calendar.DateTimeRange.#ctor">
          <a class="xref" href="C1.Win.Calendar.DateTimeRange.-ctor.html#C1_Win_Calendar_DateTimeRange__ctor">DateTimeRange()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Calendar.DateTimeRange.html">DateTimeRange</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Calendar_DateTimeRange__ctor_System_Nullable_System_DateTime__System_Nullable_System_DateTime__" data-uid="C1.Win.Calendar.DateTimeRange.#ctor(System.Nullable{System.DateTime},System.Nullable{System.DateTime})">
          <a class="xref" href="C1.Win.Calendar.DateTimeRange.-ctor.html#C1_Win_Calendar_DateTimeRange__ctor_System_Nullable_System_DateTime__System_Nullable_System_DateTime__">DateTimeRange(DateTime?, DateTime?)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Calendar.DateTimeRange.html">DateTimeRange</a> class
with the specified minValue and maxValue dates.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Calendar_DateTimeRange_MaxValue" data-uid="C1.Win.Calendar.DateTimeRange.MaxValue">
          <a class="xref" href="C1.Win.Calendar.DateTimeRange.MaxValue.html#C1_Win_Calendar_DateTimeRange_MaxValue">MaxValue</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the maximum <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> of the range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Calendar_DateTimeRange_MinValue" data-uid="C1.Win.Calendar.DateTimeRange.MinValue">
          <a class="xref" href="C1.Win.Calendar.DateTimeRange.MinValue.html#C1_Win_Calendar_DateTimeRange_MinValue">MinValue</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the minimum <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a> of the range.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Calendar_DateTimeRange_Equals_System_Object_" data-uid="C1.Win.Calendar.DateTimeRange.Equals(System.Object)">
          <a class="xref" href="C1.Win.Calendar.DateTimeRange.Equals.html#C1_Win_Calendar_DateTimeRange_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Calendar_DateTimeRange_GetDateRange_System_Globalization_Calendar_" data-uid="C1.Win.Calendar.DateTimeRange.GetDateRange(System.Globalization.Calendar)">
          <a class="xref" href="C1.Win.Calendar.DateTimeRange.GetDateRange.html#C1_Win_Calendar_DateTimeRange_GetDateRange_System_Globalization_Calendar_">GetDateRange(Calendar)</a>
        </td>
        <td class="markdown level1 summary"><p>Generates a sequence of dates between the MinValue and MaxValue dates, inclusive.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Calendar_DateTimeRange_GetHashCode" data-uid="C1.Win.Calendar.DateTimeRange.GetHashCode">
          <a class="xref" href="C1.Win.Calendar.DateTimeRange.GetHashCode.html#C1_Win_Calendar_DateTimeRange_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Calendar_DateTimeRange_OnPropertyChanged_System_String_" data-uid="C1.Win.Calendar.DateTimeRange.OnPropertyChanged(System.String)">
          <a class="xref" href="C1.Win.Calendar.DateTimeRange.OnPropertyChanged.html#C1_Win_Calendar_DateTimeRange_OnPropertyChanged_System_String_">OnPropertyChanged(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Fires the <a class="xref" href="C1.Win.Calendar.DateTimeRange.PropertyChanged.html">PropertyChanged</a> event.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Calendar_DateTimeRange_PropertyChanged" data-uid="C1.Win.Calendar.DateTimeRange.PropertyChanged">
          <a class="xref" href="C1.Win.Calendar.DateTimeRange.PropertyChanged.html">PropertyChanged</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
