# C1.Win.Calendar.C1DateRangeEdit

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Calendar_C1DateRangeEdit" data-uid="C1.Win.Calendar.C1DateRangeEdit" class="text-break">C1DateRangeEdit Class
</h1>
  <div class="markdown level0 summary"><p>Displays and edits a date range.
Provides a dropdown calendar for convenient selection and modification of start and end dates.</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"><a class="xref" href="../C1.Win.Input.10/C1.Win.Input.Base.C1InputControl.html">C1InputControl</a></div>
    <div class="level2"><a class="xref" href="../C1.Win.Input.10/C1.Win.Input.Base.C1InputHost.html">C1InputHost</a></div>
    <div class="level3"><a class="xref" href="../C1.Win.Input.10/C1.Win.Input.Base.C1DropDownControlBase.html">C1DropDownControlBase</a></div>
    <div class="level4"><a class="xref" href="../C1.Win.Input.10/C1.Win.Input.Base.C1DropDownEditorBase.html">C1DropDownEditorBase</a></div>
    <div class="level5"><a class="xref" href="C1.Win.Calendar.Base.C1DateEditBase.html">C1DateEditBase</a></div>
    <div class="level6"><span class="xref">C1DateRangeEdit</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitialize">ISupportInitialize</a></div>
    <div><span class="xref">IDropDownOwner</span></div>
    <div><span class="xref">ISupportUiaContainer</span></div>
    <div><a class="xref" href="../C1.Win.Input.10/C1.Win.Input.Base.IDropDownEditorBase.html">IDropDownEditorBase</a></div>
    <div><a class="xref" href="../C1.Win.Input.10/C1.Win.Input.Base.IDropDownControlBase.html">IDropDownControlBase</a></div>
    <div><a class="xref" href="../C1.Win.Input.10/C1.Win.Input.Base.ITextBoxHolder.html">ITextBoxHolder</a></div>
    <div><span class="xref">IUiaExpandCollapseProvider</span></div>
    <div><a class="xref" href="../C1.Win.Input.10/C1.Win.Input.IInputEditor.html">IInputEditor</a></div>
    <div><span class="xref">IEmbeddedEditor</span></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.10.dll</h6>
  <h5 id="C1_Win_Calendar_C1DateRangeEdit_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[ToolboxBitmap(typeof(C1DateRangeEdit), &quot;C1DateRangeEdit.png&quot;)]
public class C1DateRangeEdit : C1DateEditBase, ISupportInitialize, IDropDownOwner, ISupportUiaContainer, IDropDownEditorBase, IDropDownControlBase, ITextBoxHolder, IUiaExpandCollapseProvider, IInputEditor, IEmbeddedEditor</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;ToolboxBitmap(GetType(C1DateRangeEdit), &quot;C1DateRangeEdit.png&quot;)&gt;
Public Class C1DateRangeEdit
    Inherits C1DateEditBase
    Implements ISupportInitialize, IDropDownOwner, ISupportUiaContainer, IDropDownEditorBase, IDropDownControlBase, ITextBoxHolder, IUiaExpandCollapseProvider, IInputEditor, IEmbeddedEditor</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_C1DateRangeEdit__ctor" data-uid="C1.Win.Calendar.C1DateRangeEdit.#ctor">
          <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.-ctor.html#C1_Win_Calendar_C1DateRangeEdit__ctor">C1DateRangeEdit()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.html">C1DateRangeEdit</a> class.</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_C1DateRangeEdit_Calendar" data-uid="C1.Win.Calendar.C1DateRangeEdit.Calendar">
          <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.Calendar.html#C1_Win_Calendar_C1DateRangeEdit_Calendar">Calendar</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the settings of drop down calendar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Calendar_C1DateRangeEdit_EmptyAsNull" data-uid="C1.Win.Calendar.C1DateRangeEdit.EmptyAsNull">
          <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.EmptyAsNull.html#C1_Win_Calendar_C1DateRangeEdit_EmptyAsNull">EmptyAsNull</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether empty strings are interpreted as null values (<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.dbnull">DBNull</a>).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Calendar_C1DateRangeEdit_FormatType" data-uid="C1.Win.Calendar.C1DateRangeEdit.FormatType">
          <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.FormatType.html#C1_Win_Calendar_C1DateRangeEdit_FormatType">FormatType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets enumeration value determining the formatting method, including standard .NET format specifiers, custom and programmatic formatting.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Calendar_C1DateRangeEdit_MaxValue" data-uid="C1.Win.Calendar.C1DateRangeEdit.MaxValue">
          <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.MaxValue.html#C1_Win_Calendar_C1DateRangeEdit_MaxValue">MaxValue</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the maximum selected date in a range selection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Calendar_C1DateRangeEdit_MinValue" data-uid="C1.Win.Calendar.C1DateRangeEdit.MinValue">
          <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.MinValue.html#C1_Win_Calendar_C1DateRangeEdit_MinValue">MinValue</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the minimum selected date in a range selection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Calendar_C1DateRangeEdit_Styles" data-uid="C1.Win.Calendar.C1DateRangeEdit.Styles">
          <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.Styles.html#C1_Win_Calendar_C1DateRangeEdit_Styles">Styles</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.html">C1DateRangeEdit</a> styles.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Calendar_C1DateRangeEdit_Value" data-uid="C1.Win.Calendar.C1DateRangeEdit.Value">
          <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.Value.html#C1_Win_Calendar_C1DateRangeEdit_Value">Value</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the current <a class="xref" href="../C1.Win.Input.10/C1.Win.Input.Base.C1DropDownEditorBase.DataType.html#C1_Win_Input_Base_C1DropDownEditorBase_DataType">DataType</a> representation of the visual information contained in the control.</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_C1DateRangeEdit_GetSelectedDateRange" data-uid="C1.Win.Calendar.C1DateRangeEdit.GetSelectedDateRange">
          <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.GetSelectedDateRange.html#C1_Win_Calendar_C1DateRangeEdit_GetSelectedDateRange">GetSelectedDateRange()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the selected date range using the calendar system defined by the current culture.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Calendar_C1DateRangeEdit_OnDateRangeChanged_System_EventArgs_" data-uid="C1.Win.Calendar.C1DateRangeEdit.OnDateRangeChanged(System.EventArgs)">
          <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.OnDateRangeChanged.html#C1_Win_Calendar_C1DateRangeEdit_OnDateRangeChanged_System_EventArgs_">OnDateRangeChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.DateRangeChanged.html">DateRangeChanged</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Calendar_C1DateRangeEdit_OnDateRangeSelected_System_EventArgs_" data-uid="C1.Win.Calendar.C1DateRangeEdit.OnDateRangeSelected(System.EventArgs)">
          <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.OnDateRangeSelected.html#C1_Win_Calendar_C1DateRangeEdit_OnDateRangeSelected_System_EventArgs_">OnDateRangeSelected(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.DateRangeSelected.html">DateRangeSelected</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Calendar_C1DateRangeEdit_OnUpDownButtonClick_C1_Win_Input_UpDownButtonClickEventArgs_" data-uid="C1.Win.Calendar.C1DateRangeEdit.OnUpDownButtonClick(C1.Win.Input.UpDownButtonClickEventArgs)">
          <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.OnUpDownButtonClick.html#C1_Win_Calendar_C1DateRangeEdit_OnUpDownButtonClick_C1_Win_Input_UpDownButtonClickEventArgs_">OnUpDownButtonClick(UpDownButtonClickEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="../C1.Win.Input.10/C1.Win.Input.Base.C1DropDownControlBase.UpDownButtonClick.html">UpDownButtonClick</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Calendar_C1DateRangeEdit_OnValueChanged_System_EventArgs_" data-uid="C1.Win.Calendar.C1DateRangeEdit.OnValueChanged(System.EventArgs)">
          <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.OnValueChanged.html#C1_Win_Calendar_C1DateRangeEdit_OnValueChanged_System_EventArgs_">OnValueChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="../C1.Win.Input.10/C1.Win.Input.Base.C1DropDownEditorBase.ValueChanged.html">ValueChanged</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Calendar_C1DateRangeEdit_ResetMaxValue" data-uid="C1.Win.Calendar.C1DateRangeEdit.ResetMaxValue">
          <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.ResetMaxValue.html#C1_Win_Calendar_C1DateRangeEdit_ResetMaxValue">ResetMaxValue()</a>
        </td>
        <td class="markdown level1 summary"><p>Restores the default value of the <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.MaxValue.html#C1_Win_Calendar_C1DateRangeEdit_MaxValue">MaxValue</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Calendar_C1DateRangeEdit_ResetMinValue" data-uid="C1.Win.Calendar.C1DateRangeEdit.ResetMinValue">
          <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.ResetMinValue.html#C1_Win_Calendar_C1DateRangeEdit_ResetMinValue">ResetMinValue()</a>
        </td>
        <td class="markdown level1 summary"><p>Restores the default value of the <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.MinValue.html#C1_Win_Calendar_C1DateRangeEdit_MinValue">MinValue</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Calendar_C1DateRangeEdit_ShouldSerializeMaxValue" data-uid="C1.Win.Calendar.C1DateRangeEdit.ShouldSerializeMaxValue">
          <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.ShouldSerializeMaxValue.html#C1_Win_Calendar_C1DateRangeEdit_ShouldSerializeMaxValue">ShouldSerializeMaxValue()</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether to save the value of the <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.MaxValue.html#C1_Win_Calendar_C1DateRangeEdit_MaxValue">MaxValue</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Calendar_C1DateRangeEdit_ShouldSerializeMinValue" data-uid="C1.Win.Calendar.C1DateRangeEdit.ShouldSerializeMinValue">
          <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.ShouldSerializeMinValue.html#C1_Win_Calendar_C1DateRangeEdit_ShouldSerializeMinValue">ShouldSerializeMinValue()</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether to save the value of the <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.MinValue.html#C1_Win_Calendar_C1DateRangeEdit_MinValue">MinValue</a> property.</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_C1DateRangeEdit_DateRangeChanged" data-uid="C1.Win.Calendar.C1DateRangeEdit.DateRangeChanged">
          <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.DateRangeChanged.html">DateRangeChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the date range is modified by a change to the <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.MinValue.html#C1_Win_Calendar_C1DateRangeEdit_MinValue">MinValue</a> or <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.MaxValue.html#C1_Win_Calendar_C1DateRangeEdit_MaxValue">MaxValue</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Calendar_C1DateRangeEdit_DateRangeSelected" data-uid="C1.Win.Calendar.C1DateRangeEdit.DateRangeSelected">
          <a class="xref" href="C1.Win.Calendar.C1DateRangeEdit.DateRangeSelected.html">DateRangeSelected</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when date range in drop-down calendar is selected.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
