# C1.Win.List.ListBase.C1ListBase.RowContaining

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_List_ListBase_C1ListBase_RowContaining_" data-uid="C1.Win.List.ListBase.C1ListBase.RowContaining*">RowContaining Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_List_ListBase_C1ListBase_RowContaining_" data-uid="C1.Win.List.ListBase.C1ListBase.RowContaining*"></a>
<h4 id="C1_Win_List_ListBase_C1ListBase_RowContaining_System_Int32_" data-uid="C1.Win.List.ListBase.C1ListBase.RowContaining(System.Int32)">RowContaining(int)</h4>
<div class="markdown level1 summary"><p>Returns the zero-based index of the display row containing the specified coordinate.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int RowContaining(int y)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function RowContaining(y As Integer) 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">y</span></td>
      <td><p>The y coordinate in pixels.</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.int32">int</a></td>
      <td><p>An integer corresponding to the display row beneath the specified Y coordinate.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_List_ListBase_C1ListBase_RowContaining_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
The RowContaining method returns the zero-based index of the display row containing the specified coordinate. This value ranges from 0 to VisibleRows - 1. 
</p>
<p>
If y is outside of the list's data area, this method returns -1.
</p>
</div>
</div>
