# GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.GetDatesInView

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_GetDatesInView_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.GetDatesInView*">GetDatesInView Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_GetDatesInView_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.GetDatesInView*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_GetDatesInView_GrapeCity_Wpf_SpreadSheet_CellType_Editors_PickDayType_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.GetDatesInView(GrapeCity.Wpf.SpreadSheet.CellType.Editors.PickDayType)">GetDatesInView(PickDayType)</h4>
<div class="markdown level1 summary"><p>Get the dates of the given type in view.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DateTime[] GetDatesInView(PickDayType type)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetDatesInView(type As PickDayType) As Date()</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="GrapeCity.Wpf.SpreadSheet.CellType.Editors.PickDayType.html">PickDayType</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>One of the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.PickDayType.html">PickDayType</a> enumeration values indicates the type used for pick days.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</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> array includes all dates accord the pick requirement.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_GetDatesInView_GrapeCity_Wpf_SpreadSheet_CellType_Editors_PickDayType__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
      The return value of this method is different when <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.DisplayMode.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_DisplayMode">DisplayMode</a> is set to different GrapeCity.Windows.InputMan.CalendarMode enumeration value.
      </p>
<p>
      If the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.DisplayMode.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_DisplayMode">DisplayMode</a> is GrapeCity.Windows.InputMan.CalendarMode.Month, the return value will be retrieved from the month displayed in control.
      </p>
<p>
      If the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.DisplayMode.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_DisplayMode">DisplayMode</a> is GrapeCity.Windows.InputMan.CalendarMode.Year, the return value will be retrieved from the year displayed in control.
      </p>
<p>
      If the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.DisplayMode.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_DisplayMode">DisplayMode</a> is GrapeCity.Windows.InputMan.CalendarMode.Decade, the return value will be retrieved from the decade displayed in control.
      </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.componentmodel.invalidenumargumentexception">InvalidEnumArgumentException</a></td>
      <td><p>if <code class="paramref">type</code> is a invalid value of <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.PickDayType.html">PickDayType</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_GetDatesInView_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.GetDatesInView*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_GetDatesInView" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.GetDatesInView">GetDatesInView()</h4>
<div class="markdown level1 summary"><p>Get all the dates in view.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DateTime[] GetDatesInView()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetDatesInView() As Date()</code></pre>
</div>
<h5 class="returns">Returns</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> array includes all dates in view.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_GetDatesInView_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
      The return value of this method is different when <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.DisplayMode.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_DisplayMode">DisplayMode</a> is set to different GrapeCity.Windows.InputMan.CalendarMode enumeration value.
      </p>
<p>
      If the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.DisplayMode.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_DisplayMode">DisplayMode</a> is GrapeCity.Windows.InputMan.CalendarMode.Month, the return value will be retrieved from the month displayed in control.
      </p>
<p>
      If the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.DisplayMode.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_DisplayMode">DisplayMode</a> is GrapeCity.Windows.InputMan.CalendarMode.Year, the return value will be retrieved from the year displayed in control.
      </p>
<p>
      If the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalendar.DisplayMode.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalendar_DisplayMode">DisplayMode</a> is GrapeCity.Windows.InputMan.CalendarMode.Decade, the return value will be retrieved from the decade displayed in control.
      </p>
</div>
</div>
