# C1.WPF.Excel.XLSheet.SelectedCells

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Excel_XLSheet_SelectedCells_" data-uid="C1.WPF.Excel.XLSheet.SelectedCells*">SelectedCells Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Excel_XLSheet_SelectedCells_" data-uid="C1.WPF.Excel.XLSheet.SelectedCells*"></a>
<h4 id="C1_WPF_Excel_XLSheet_SelectedCells" data-uid="C1.WPF.Excel.XLSheet.SelectedCells">SelectedCells</h4>
<div class="markdown level1 summary"><p>Gets an <a class="xref" href="C1.WPF.Excel.XLCellRangeCollection.html">XLCellRangeCollection</a> that contains the
collection of cells that are selected on the sheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public XLCellRangeCollection SelectedCells { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public ReadOnly Property SelectedCells As XLCellRangeCollection</code></pre>
</div>
<h5 id="C1_WPF_Excel_XLSheet_SelectedCells_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The collection has methods for inspecting, adding, or clearing merged ranges in a sheet.
Each selected range is represented by an <a class="xref" href="C1.WPF.Excel.XLCellRange.html">XLCellRange</a> object.</p>
</div>
</div>
