# FarPoint.Win.Spread.CellClickEventArgs.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_CellClickEventArgs__ctor_" data-uid="FarPoint.Win.Spread.CellClickEventArgs.#ctor*">CellClickEventArgs Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_CellClickEventArgs__ctor_" data-uid="FarPoint.Win.Spread.CellClickEventArgs.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_CellClickEventArgs__ctor_FarPoint_Win_Spread_SpreadView_System_Int32_System_Int32_System_Int32_System_Int32_System_Windows_Forms_MouseButtons_System_Boolean_System_Boolean_" data-uid="FarPoint.Win.Spread.CellClickEventArgs.#ctor(FarPoint.Win.Spread.SpreadView,System.Int32,System.Int32,System.Int32,System.Int32,System.Windows.Forms.MouseButtons,System.Boolean,System.Boolean)">CellClickEventArgs(SpreadView, int, int, int, int, MouseButtons, bool, bool)</h4>
<div class="markdown level1 summary"><p>Creates a new object with the CellClick event arguments.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CellClickEventArgs(SpreadView view, int row, int column, int x, int y, MouseButtons button, bool columnHeader, bool rowHeader)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(view As SpreadView, row As Integer, column As Integer, x As Integer, y As Integer, button As MouseButtons, columnHeader As Boolean, rowHeader As Boolean)</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="FarPoint.Win.Spread.SpreadView.html">SpreadView</a></td>
      <td><span class="parametername">view</span></td>
      <td><p>View (Spreadview object) that contains the clicked cell</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>Row index of the clicked cell</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>Column index of the clicked cell</p>
</td>
    </tr>
    <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>X-coordinate of the pointer position</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>Y-coordinate of the pointer position</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.mousebuttons">MouseButtons</a></td>
      <td><span class="parametername">button</span></td>
      <td><p>Which mouse button was pressed</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">columnHeader</span></td>
      <td><p>Whether the clicked cell is in the column header</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">rowHeader</span></td>
      <td><p>Whether the clicked cell is in the row header</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_CellClickEventArgs__ctor_" data-uid="FarPoint.Win.Spread.CellClickEventArgs.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_CellClickEventArgs__ctor_FarPoint_Win_Spread_SpreadView_System_Int32_System_Int32_System_Int32_System_Int32_System_Windows_Forms_MouseButtons_System_Boolean_System_Boolean_System_Boolean_" data-uid="FarPoint.Win.Spread.CellClickEventArgs.#ctor(FarPoint.Win.Spread.SpreadView,System.Int32,System.Int32,System.Int32,System.Int32,System.Windows.Forms.MouseButtons,System.Boolean,System.Boolean,System.Boolean)">CellClickEventArgs(SpreadView, int, int, int, int, MouseButtons, bool, bool, bool)</h4>
<div class="markdown level1 summary"><p>Creates a new object with the CellClick event arguments.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CellClickEventArgs(SpreadView view, int row, int column, int x, int y, MouseButtons button, bool columnHeader, bool rowHeader, bool columnFooter)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(view As SpreadView, row As Integer, column As Integer, x As Integer, y As Integer, button As MouseButtons, columnHeader As Boolean, rowHeader As Boolean, columnFooter As Boolean)</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="FarPoint.Win.Spread.SpreadView.html">SpreadView</a></td>
      <td><span class="parametername">view</span></td>
      <td><p>View (Spreadview object) that contains the clicked cell</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>Row index of the clicked cell</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>Column index of the clicked cell</p>
</td>
    </tr>
    <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>X-coordinate of the pointer position</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>Y-coordinate of the pointer position</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.mousebuttons">MouseButtons</a></td>
      <td><span class="parametername">button</span></td>
      <td><p>Which mouse button was pressed</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">columnHeader</span></td>
      <td><p>Whether the clicked cell is in the column header</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">rowHeader</span></td>
      <td><p>Whether the clicked cell is in the row header</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">columnFooter</span></td>
      <td><p>Whether the clicked cell is in the column footer</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_CellClickEventArgs__ctor_" data-uid="FarPoint.Win.Spread.CellClickEventArgs.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_CellClickEventArgs__ctor_FarPoint_Win_Spread_SpreadView_System_Int32_System_Int32_System_Int32_System_Int32_System_Windows_Forms_MouseButtons_System_Boolean_System_Boolean_System_Boolean_System_Int32_System_Int32_" data-uid="FarPoint.Win.Spread.CellClickEventArgs.#ctor(FarPoint.Win.Spread.SpreadView,System.Int32,System.Int32,System.Int32,System.Int32,System.Windows.Forms.MouseButtons,System.Boolean,System.Boolean,System.Boolean,System.Int32,System.Int32)">CellClickEventArgs(SpreadView, int, int, int, int, MouseButtons, bool, bool, bool, int, int)</h4>
<div class="markdown level1 summary"><p>Creates a new object with the CellClick event arguments.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CellClickEventArgs(SpreadView view, int row, int column, int x, int y, MouseButtons button, bool columnHeader, bool rowHeader, bool columnFooter, int actualRowLayoutIndex, int actualColumnLayoutIndex)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(view As SpreadView, row As Integer, column As Integer, x As Integer, y As Integer, button As MouseButtons, columnHeader As Boolean, rowHeader As Boolean, columnFooter As Boolean, actualRowLayoutIndex As Integer, actualColumnLayoutIndex As Integer)</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="FarPoint.Win.Spread.SpreadView.html">SpreadView</a></td>
      <td><span class="parametername">view</span></td>
      <td><p>View (Spreadview object) that contains the clicked cell</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>Row index of the clicked cell</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>Column index of the clicked cell</p>
</td>
    </tr>
    <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>X-coordinate of the pointer position</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>Y-coordinate of the pointer position</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.mousebuttons">MouseButtons</a></td>
      <td><span class="parametername">button</span></td>
      <td><p>Which mouse button was pressed</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">columnHeader</span></td>
      <td><p>Whether the clicked cell is in the column header</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">rowHeader</span></td>
      <td><p>Whether the clicked cell is in the row header</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">columnFooter</span></td>
      <td><p>Whether the clicked cell is in the column footer</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">actualRowLayoutIndex</span></td>
      <td><p>Actual row index in the layout</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">actualColumnLayoutIndex</span></td>
      <td><p>Actual column index in the layout</p>
</td>
    </tr>
  </tbody>
</table>
</div>
