# GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.AutoWordSelection

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_AutoWordSelection_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.AutoWordSelection*">AutoWordSelection Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_AutoWordSelection_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.AutoWordSelection*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_AutoWordSelection" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.AutoWordSelection">AutoWordSelection</h4>
<div class="markdown level1 summary"><p>Gets or sets a value that determines whether when a user selects part of a word by dragging across it with the mouse, the rest of the word is selected. This is a dependency property.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool AutoWordSelection { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property AutoWordSelection As Boolean</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p><a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> if automatic word selection is enabled; otherwise, <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>. The default value is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_AutoWordSelection_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
    When <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.AutoWordSelection.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_AutoWordSelection">AutoWordSelection</a> is enabled, each time that part of a word is selected by the user dragging over part of a word using the mouse, the selection is automatically expanded to include that entire word. The user can override automatic selection of an entire word by momentarily reversing the direction in which the mouse pointer is being dragged as the selection is made. This action undoes the automatic selection of the entire word, and enables the user to precisely select part or all of the word.
    </p>
<p>
    When <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.AutoWordSelection.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_AutoWordSelection">AutoWordSelection</a> is disabled, a selection is not automatically expanded to include entire words; in this case, precise selections are always determined manually.
    </p>
<p>
  <div class="NOTE"><h5>cnotes</h5><p> Auto selection does not affect the first word that the user drags across. It is only after this first word boundary is crossed that auto selection takes effect. 
    </p></div>

</div>
</div>
