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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalendar_DateFromPoint_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.DropDownCalendar.DateFromPoint*">DateFromPoint Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalendar_DateFromPoint_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.DropDownCalendar.DateFromPoint*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalendar_DateFromPoint_System_Int32_System_Int32_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.DropDownCalendar.DateFromPoint(System.Int32,System.Int32)">DateFromPoint(int, int)</h4>
<div class="markdown level1 summary"><p>Gets a date according to the given x-coordinate and y-coordinate.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DateTime? DateFromPoint(int x, int y)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function DateFromPoint(x As Integer, y As Integer) 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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value that indicates the x-coordinate of the point.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value that indicates the y-coordinate of the point.</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>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.nullable-1">Nullable&lt;T&gt;</a> type to express the current date.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalendar_DateFromPoint_System_Int32_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method can retrieve a date from a special point which is determined by the x and y parameters.
If the given point is not contained in the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.DropDownCalendar.html">DropDownCalendar</a> view, a <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> value is returned.</p>
</div>


<a id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalendar_DateFromPoint_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.DropDownCalendar.DateFromPoint*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalendar_DateFromPoint_System_Drawing_Point_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.DropDownCalendar.DateFromPoint(System.Drawing.Point)">DateFromPoint(Point)</h4>
<div class="markdown level1 summary"><p>Gets a date according to the given point.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DateTime? DateFromPoint(Point point)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function DateFromPoint(point As Point) 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="https://learn.microsoft.com/dotnet/api/system.drawing.point">Point</a></td>
      <td><span class="parametername">point</span></td>
      <td><p>The value of the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.point">Point</a> type.</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>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.nullable-1">Nullable&lt;T&gt;</a> type used to express the current date.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalendar_DateFromPoint_System_Drawing_Point__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method can retrieve a date from a special point.
If the given point is not contained in the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.DropDownCalendar.html">DropDownCalendar</a> view,
a <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> value is returned.</p>
</div>
</div>
