# GrapeCity.ActiveReports.Design.Selection.Select

## Content

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



<h1 id="GrapeCity_ActiveReports_Design_Selection_Select_" data-uid="GrapeCity.ActiveReports.Design.Selection.Select*">Select Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Design_Selection_Select_" data-uid="GrapeCity.ActiveReports.Design.Selection.Select*"></a>
<h4 id="GrapeCity_ActiveReports_Design_Selection_Select_System_Object_" data-uid="GrapeCity.ActiveReports.Design.Selection.Select(System.Object)">Select(object)</h4>
<div class="markdown level1 summary"><p>Replaces the current selection with the specified object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Select(object selectedObject)</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.object">object</a></td>
      <td><span class="parametername">selectedObject</span></td>
      <td><p>The object to select. This becomes the only selected object in the designer.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Design_Selection_Select_System_Object__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method changes the current selection to the specified object, effectively deselecting any previously selected objects. It is equivalent to
setting the selection with <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.design.selectiontypes#system-componentmodel-design-selectiontypes-replace">Replace</a>, which means the new selection replaces the old one entirely.</p>
</div>


<a id="GrapeCity_ActiveReports_Design_Selection_Select_" data-uid="GrapeCity.ActiveReports.Design.Selection.Select*"></a>
<h4 id="GrapeCity_ActiveReports_Design_Selection_Select_System_Object_System_Boolean_" data-uid="GrapeCity.ActiveReports.Design.Selection.Select(System.Object,System.Boolean)">Select(object, bool)</h4>
<div class="markdown level1 summary"><p>Adds the specified object to the current selection or makes it the primary selection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Select(object selectedObject, bool continuous)</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.object">object</a></td>
      <td><span class="parametername">selectedObject</span></td>
      <td><p>The object to add to the selection or make primary.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">continuous</span></td>
      <td><p>If <code>true</code>, adds the object to the current selection. If <code>false</code>, makes the object the only selected item.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Design_Selection_Select_System_Object_System_Boolean__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method modifies the current selection based on the value of <code class="paramref">continuous</code>. If <code class="paramref">continuous</code> is <code>true</code>,
the specified object is added to the current selection, maintaining any existing selections. If <code class="paramref">continuous</code> is <code>false</code>,
the current selection is replaced with the specified object, making it the primary selection. This behavior aligns with the
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.design.selectiontypes#system-componentmodel-design-selectiontypes-primary">Primary</a> selection type.</p>
</div>
</div>
