# GrapeCity.Win.Spread.InputMan.CellType.EditBase.Select

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Win_Spread_InputMan_CellType_EditBase_Select_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.EditBase.Select*">Select Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Win_Spread_InputMan_CellType_EditBase_Select_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.EditBase.Select*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_EditBase_Select_System_Int32_System_Int32_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.EditBase.Select(System.Int32,System.Int32)">Select(int, int)</h4>
<div class="markdown level1 summary"><p>Selects a range of text in the control.</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(int start, int length)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub [Select](start As Integer, length As Integer)</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">start</span></td>
      <td><p>The position of the first character in the current text selection within the text box.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">length</span></td>
      <td><p>The number of characters to select.</p>
</td>
    </tr>
  </tbody>
</table>
<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.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td><p>The <b>value</b> of the start parameter is less than zero.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Win_Spread_InputMan_CellType_EditBase_Select_System_Int32_System_Int32__seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.EditBase.SelectAll.html#GrapeCity_Win_Spread_InputMan_CellType_EditBase_SelectAll">SelectAll</a>()</div>
    <div><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.EditBase.DeselectAll.html#GrapeCity_Win_Spread_InputMan_CellType_EditBase_DeselectAll">DeselectAll</a>()</div>
    <div><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.EditBase.SelectionStart.html#GrapeCity_Win_Spread_InputMan_CellType_EditBase_SelectionStart">SelectionStart</a></div>
    <div><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.EditBase.SelectionLength.html#GrapeCity_Win_Spread_InputMan_CellType_EditBase_SelectionLength">SelectionLength</a></div>
    <div><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.EditBase.SelectedText.html#GrapeCity_Win_Spread_InputMan_CellType_EditBase_SelectedText">SelectedText</a></div>
</div>
</div>
