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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalendar_DayOfWeekFromPoint_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.DropDownCalendar.DayOfWeekFromPoint*">DayOfWeekFromPoint Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalendar_DayOfWeekFromPoint_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.DropDownCalendar.DayOfWeekFromPoint*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalendar_DayOfWeekFromPoint_System_Int32_System_Int32_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.DropDownCalendar.DayOfWeekFromPoint(System.Int32,System.Int32)">DayOfWeekFromPoint(int, int)</h4>
<div class="markdown level1 summary"><p>Gets a date according 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 DayOfWeek DayOfWeekFromPoint(int x, int y)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function DayOfWeekFromPoint(x As Integer, y As Integer) As DayOfWeek</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="GrapeCity.Win.Spread.InputMan.CellType.DayOfWeek.html">DayOfWeek</a></td>
      <td><p>The <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.DayOfWeek.html">DayOfWeek</a> used to express the current weekday.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalendar_DayOfWeekFromPoint_System_Int32_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method can retrieve a weekday 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_DayOfWeekFromPoint_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.DropDownCalendar.DayOfWeekFromPoint*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalendar_DayOfWeekFromPoint_System_Drawing_Point_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.DropDownCalendar.DayOfWeekFromPoint(System.Drawing.Point)">DayOfWeekFromPoint(Point)</h4>
<div class="markdown level1 summary"><p>Gets the weekday from a point.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DayOfWeek DayOfWeekFromPoint(Point point)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function DayOfWeekFromPoint(point As Point) As DayOfWeek</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 point 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="GrapeCity.Win.Spread.InputMan.CellType.DayOfWeek.html">DayOfWeek</a></td>
      <td><p>The DayOfWeekType used to express the current weekday.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Win_Spread_InputMan_CellType_DropDownCalendar_DayOfWeekFromPoint_System_Drawing_Point__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method can retrieve a weekday 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>
