# C1.WPF.Excel.XLSheet.Item

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Excel_XLSheet_Item_" data-uid="C1.WPF.Excel.XLSheet.Item*">this Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Excel_XLSheet_Item_" data-uid="C1.WPF.Excel.XLSheet.Item*"></a>
<h4 id="C1_WPF_Excel_XLSheet_Item_System_Int32_System_Int32_" data-uid="C1.WPF.Excel.XLSheet.Item(System.Int32,System.Int32)">this[int, int]</h4>
<div class="markdown level1 summary"><p>Gets the cell at a specified position on the sheet, creating a new cell if necessary.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLCell this[int rowIndex, int colIndex] { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public ReadOnly Default Property Item(rowIndex As Integer, colIndex As Integer) As XLCell</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">rowIndex</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">colIndex</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_Excel_XLSheet_Item_System_Int32_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><pre><code>&lt;p&gt;If the specified cell doesn't exist when the indexer is invoked, the sheet will be expanded and 
</code></pre>
<p>a new cell will be created, then returned. This makes it easy to create and populate sheets.</p>
<p>If you want to determine whether a specific cell has been defined, use the <a class="xref" href="C1.WPF.Excel.XLSheet.GetCell.html#C1_WPF_Excel_XLSheet_GetCell_System_Int32_System_Int32_">GetCell(int, int)</a>
method instead.</p>
<p>The indexer is generally more useful when creating and populating sheets. The <a class="xref" href="C1.WPF.Excel.XLSheet.GetCell.html#C1_WPF_Excel_XLSheet_GetCell_System_Int32_System_Int32_">GetCell(int, int)</a>
method is more useful when loading existing sheets.</p>
</div>
</div>
