# GrapeCity.ActiveReports.Design.Designer.Selection

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Design_Designer_Selection_" data-uid="GrapeCity.ActiveReports.Design.Designer.Selection*">Selection Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Design_Designer_Selection_" data-uid="GrapeCity.ActiveReports.Design.Designer.Selection*"></a>
<h4 id="GrapeCity_ActiveReports_Design_Designer_Selection" data-uid="GrapeCity.ActiveReports.Design.Designer.Selection">Selection</h4>
<div class="markdown level1 summary"><p>Gets a value representing the collection of objects currently selected in the designer.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Browsable(false)]
public Selection Selection { get; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</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="GrapeCity.ActiveReports.Design.Selection.html">Selection</a></td>
      <td><p>A <a class="xref" href="GrapeCity.ActiveReports.Design.Selection.html">Selection</a> object representing the current selection within the designer. This collection includes all
report elements or components that the user has selected.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Design_Designer_Selection_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This property is essential for operations that need to act on the user's selection, such as property editing, deletion, or manipulation of report
elements. It provides a way to programmatically access and interact with the selected items in the designer.</p>
</div>
<h5 id="GrapeCity_ActiveReports_Design_Designer_Selection_examples">Examples</h5>
<pre><code class="lang-csharp">designer.SelectionChanged += () {
	removeButton.Enabled = 
	designer.Selection.OfType&lt;ReportItem&gt;().Count() &gt; 0
	|| designer.Selection.OfType&lt;ARControl&gt;().Count() &gt; 0;
}</code></pre>

</div>
