# GrapeCity.Spreadsheet.IWorksheetView.GetActiveCell

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_IWorksheetView_GetActiveCell_" data-uid="GrapeCity.Spreadsheet.IWorksheetView.GetActiveCell*">GetActiveCell Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_IWorksheetView_GetActiveCell_" data-uid="GrapeCity.Spreadsheet.IWorksheetView.GetActiveCell*"></a>
<h4 id="GrapeCity_Spreadsheet_IWorksheetView_GetActiveCell_System_Int32__System_Int32__" data-uid="GrapeCity.Spreadsheet.IWorksheetView.GetActiveCell(System.Int32@,System.Int32@)">GetActiveCell(out int, out int)</h4>
<div class="markdown level1 summary"><p>Gets the active row and column indexes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void GetActiveCell(out int activeRow, out int activeColumn)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub GetActiveCell(ByRef activeRow As Integer, ByRef activeColumn 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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">activeRow</span></td>
      <td><p>The active row index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">activeColumn</span></td>
      <td><p>The active column index.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
