# GrapeCity.Win.Spread.InputMan.CellType.DropDownCalendar.GetDatesInView

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalendar_GetDatesInView_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.DropDownCalendar.GetDatesInView*">GetDatesInView Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalendar_GetDatesInView_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.DropDownCalendar.GetDatesInView*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalendar_GetDatesInView_GrapeCity_Win_Spread_InputMan_CellType_PickDays_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.DropDownCalendar.GetDatesInView(GrapeCity.Win.Spread.InputMan.CellType.PickDays)">GetDatesInView(PickDays)</h4>
<div class="markdown level1 summary"><p>Gets the dates of the given type in the current 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(PickDays type)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetDatesInView(type As PickDays) 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.Win.Spread.InputMan.CellType.PickDays.html">PickDays</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>One of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.PickDays.html">PickDays</a> values that 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 that includes all dates based on the pick requirement.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalendar_GetDatesInView_GrapeCity_Win_Spread_InputMan_CellType_PickDays__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The method retrieves the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.PickDays.html">PickDays</a> type dates in the current calendar view.
If the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.DropDownCalendar.html">DropDownCalendar</a> is <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CalendarType.html#GrapeCity_Win_Spread_InputMan_CellType_CalendarType_YearMonth">YearMonth</a> mode,
the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.PickDays.html">PickDays</a> type dates between the minimum and the maximum month are returned.</p>
</div>


<a id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalendar_GetDatesInView_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.DropDownCalendar.GetDatesInView*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalendar_GetDatesInView" data-uid="GrapeCity.Win.Spread.InputMan.CellType.DropDownCalendar.GetDatesInView">GetDatesInView()</h4>
<div class="markdown level1 summary"><p>Gets all the dates in the 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 that includes all dates in the view.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalendar_GetDatesInView_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method retrieves all normal dates in the current calendar view.
If the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.DropDownCalendar.html">DropDownCalendar</a> is <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.CalendarType.html#GrapeCity_Win_Spread_InputMan_CellType_CalendarType_YearMonth">YearMonth</a> mode,
all dates between the minimum and the maximum month are returned.</p>
</div>
</div>
