# GrapeCity.ActiveReports.Design.Selection.-ctor

## Content

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



<h1 id="GrapeCity_ActiveReports_Design_Selection__ctor_" data-uid="GrapeCity.ActiveReports.Design.Selection.#ctor*">Selection Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Design_Selection__ctor_" data-uid="GrapeCity.ActiveReports.Design.Selection.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Design_Selection__ctor_System_ComponentModel_Design_ISelectionService_" data-uid="GrapeCity.ActiveReports.Design.Selection.#ctor(System.ComponentModel.Design.ISelectionService)">Selection(ISelectionService)</h4>
<div class="markdown level1 summary"><p>Constructs a new <a class="xref" href="GrapeCity.ActiveReports.Design.Selection.html">Selection</a> instance using the provided selection service.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Selection(ISelectionService selectionService)</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.componentmodel.design.iselectionservice">ISelectionService</a></td>
      <td><span class="parametername">selectionService</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.design.iselectionservice">ISelectionService</a> that manages component selection within the designer.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Design_Selection__ctor_System_ComponentModel_Design_ISelectionService__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This constructor initializes the <a class="xref" href="GrapeCity.ActiveReports.Design.Selection.html">Selection</a> object with a selection service, which is essential for managing the selection of components
in the designer environment. The selection service allows for operations such as querying and modifying the current selection of components.</p>
</div>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentnullexception">ArgumentNullException</a></td>
      <td><p>Thrown if <code class="paramref">selectionService</code> is null, indicating that a valid selection service is required.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
