# GrapeCity.Wpf.SpreadSheet.CellType.Editors.EditBase.SelectedText

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_EditBase_SelectedText_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.EditBase.SelectedText*">SelectedText Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_EditBase_SelectedText_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.EditBase.SelectedText*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_EditBase_SelectedText" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.EditBase.SelectedText">SelectedText</h4>
<div class="markdown level1 summary"><p>Gets or sets a value indicating the currently selected 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 string SelectedText { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property SelectedText As String</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.string">string</a></td>
      <td><p>A string that represents the currently selected text in the control.
<br>
The default is <code>string.Empty</code>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_EditBase_SelectedText_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>You can assign text to this property to change the text currently selected in the control. If no text is currently selected in the control, this property will insert the new value to the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.EditBase.Text.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_EditBase_Text">Text</a> property at the current caret position.</p>
</div>
</div>
