# C1.Win.Input.Base.ITextBoxBase

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Input_Base_ITextBoxBase" data-uid="C1.Win.Input.Base.ITextBoxBase" class="text-break">ITextBoxBase Interface
</h1>
  <div class="markdown level0 summary"><p>Represents the methods and properties of <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.textboxbase">TextBoxBase</a> class.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Input.Base.html">C1.Win.Input.Base</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.Input.10.dll</h6>
  <h5 id="C1_Win_Input_Base_ITextBoxBase_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface ITextBoxBase</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Interface ITextBoxBase</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_AcceptsTab" data-uid="C1.Win.Input.Base.ITextBoxBase.AcceptsTab">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.AcceptsTab.html#C1_Win_Input_Base_ITextBoxBase_AcceptsTab">AcceptsTab</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether pressing the TAB key in a multiline text box control types a TAB character in the control instead of moving the focus to the next control in the tab order.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_BorderStyle" data-uid="C1.Win.Input.Base.ITextBoxBase.BorderStyle">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.BorderStyle.html#C1_Win_Input_Base_ITextBoxBase_BorderStyle">BorderStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the border type of the text box control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_CanUndo" data-uid="C1.Win.Input.Base.ITextBoxBase.CanUndo">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.CanUndo.html#C1_Win_Input_Base_ITextBoxBase_CanUndo">CanUndo</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the user can undo the previous operation in a text box control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_HideSelection" data-uid="C1.Win.Input.Base.ITextBoxBase.HideSelection">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.HideSelection.html#C1_Win_Input_Base_ITextBoxBase_HideSelection">HideSelection</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the selected text in the text box control remains highlighted when the control loses focus.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_Lines" data-uid="C1.Win.Input.Base.ITextBoxBase.Lines">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.Lines.html#C1_Win_Input_Base_ITextBoxBase_Lines">Lines</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the lines of text in a text box control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_MaxLength" data-uid="C1.Win.Input.Base.ITextBoxBase.MaxLength">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.MaxLength.html#C1_Win_Input_Base_ITextBoxBase_MaxLength">MaxLength</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the maximum number of characters the user can type or paste into the text box control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_Modified" data-uid="C1.Win.Input.Base.ITextBoxBase.Modified">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.Modified.html#C1_Win_Input_Base_ITextBoxBase_Modified">Modified</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that indicates that the text box control has been modified by the user since the control was created or its contents were last set.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_Multiline" data-uid="C1.Win.Input.Base.ITextBoxBase.Multiline">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.Multiline.html#C1_Win_Input_Base_ITextBoxBase_Multiline">Multiline</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether this is a multiline text box control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_PreferredHeight" data-uid="C1.Win.Input.Base.ITextBoxBase.PreferredHeight">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.PreferredHeight.html#C1_Win_Input_Base_ITextBoxBase_PreferredHeight">PreferredHeight</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the preferred height for a text box.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_ReadOnly" data-uid="C1.Win.Input.Base.ITextBoxBase.ReadOnly">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.ReadOnly.html#C1_Win_Input_Base_ITextBoxBase_ReadOnly">ReadOnly</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether text in the text box is read-only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_SelectedText" data-uid="C1.Win.Input.Base.ITextBoxBase.SelectedText">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.SelectedText.html#C1_Win_Input_Base_ITextBoxBase_SelectedText">SelectedText</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating the currently selected text in the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_SelectionLength" data-uid="C1.Win.Input.Base.ITextBoxBase.SelectionLength">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.SelectionLength.html#C1_Win_Input_Base_ITextBoxBase_SelectionLength">SelectionLength</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of characters selected in the text box.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_SelectionStart" data-uid="C1.Win.Input.Base.ITextBoxBase.SelectionStart">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.SelectionStart.html#C1_Win_Input_Base_ITextBoxBase_SelectionStart">SelectionStart</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the starting point of text selected in the text box.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_ShortcutsEnabled" data-uid="C1.Win.Input.Base.ITextBoxBase.ShortcutsEnabled">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.ShortcutsEnabled.html#C1_Win_Input_Base_ITextBoxBase_ShortcutsEnabled">ShortcutsEnabled</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the defined shortcuts are enabled.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_Text" data-uid="C1.Win.Input.Base.ITextBoxBase.Text">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.Text.html#C1_Win_Input_Base_ITextBoxBase_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the current text in the text box.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_TextLength" data-uid="C1.Win.Input.Base.ITextBoxBase.TextLength">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.TextLength.html#C1_Win_Input_Base_ITextBoxBase_TextLength">TextLength</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the length of text in the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_WordWrap" data-uid="C1.Win.Input.Base.ITextBoxBase.WordWrap">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.WordWrap.html#C1_Win_Input_Base_ITextBoxBase_WordWrap">WordWrap</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether a multiline text box control automatically wraps words to the beginning of the next line when necessary.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_AppendText_System_String_" data-uid="C1.Win.Input.Base.ITextBoxBase.AppendText(System.String)">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.AppendText.html#C1_Win_Input_Base_ITextBoxBase_AppendText_System_String_">AppendText(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Appends text to the current text of a text box.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_Clear" data-uid="C1.Win.Input.Base.ITextBoxBase.Clear">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.Clear.html#C1_Win_Input_Base_ITextBoxBase_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Clears all text from the text box control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_ClearUndo" data-uid="C1.Win.Input.Base.ITextBoxBase.ClearUndo">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.ClearUndo.html#C1_Win_Input_Base_ITextBoxBase_ClearUndo">ClearUndo()</a>
        </td>
        <td class="markdown level1 summary"><p>Clears information about the most recent operation from the undo buffer of the text box.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_Copy" data-uid="C1.Win.Input.Base.ITextBoxBase.Copy">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.Copy.html#C1_Win_Input_Base_ITextBoxBase_Copy">Copy()</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the current selection in the text box to the Clipboard.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_Cut" data-uid="C1.Win.Input.Base.ITextBoxBase.Cut">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.Cut.html#C1_Win_Input_Base_ITextBoxBase_Cut">Cut()</a>
        </td>
        <td class="markdown level1 summary"><p>Moves the current selection in the text box to the Clipboard.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_DeselectAll" data-uid="C1.Win.Input.Base.ITextBoxBase.DeselectAll">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.DeselectAll.html#C1_Win_Input_Base_ITextBoxBase_DeselectAll">DeselectAll()</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies that the value of the SelectionLength property is zero so that no characters are selected in the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_GetCharFromPosition_System_Drawing_Point_" data-uid="C1.Win.Input.Base.ITextBoxBase.GetCharFromPosition(System.Drawing.Point)">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.GetCharFromPosition.html#C1_Win_Input_Base_ITextBoxBase_GetCharFromPosition_System_Drawing_Point_">GetCharFromPosition(Point)</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves the character that is closest to the specified location within the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_GetCharIndexFromPosition_System_Drawing_Point_" data-uid="C1.Win.Input.Base.ITextBoxBase.GetCharIndexFromPosition(System.Drawing.Point)">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.GetCharIndexFromPosition.html#C1_Win_Input_Base_ITextBoxBase_GetCharIndexFromPosition_System_Drawing_Point_">GetCharIndexFromPosition(Point)</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves the index of the character nearest to the specified location.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_GetFirstCharIndexFromLine_System_Int32_" data-uid="C1.Win.Input.Base.ITextBoxBase.GetFirstCharIndexFromLine(System.Int32)">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.GetFirstCharIndexFromLine.html#C1_Win_Input_Base_ITextBoxBase_GetFirstCharIndexFromLine_System_Int32_">GetFirstCharIndexFromLine(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves the index of the first character of a given line.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_GetFirstCharIndexOfCurrentLine" data-uid="C1.Win.Input.Base.ITextBoxBase.GetFirstCharIndexOfCurrentLine">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.GetFirstCharIndexOfCurrentLine.html#C1_Win_Input_Base_ITextBoxBase_GetFirstCharIndexOfCurrentLine">GetFirstCharIndexOfCurrentLine()</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves the index of the first character of the current line.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_GetLineFromCharIndex_System_Int32_" data-uid="C1.Win.Input.Base.ITextBoxBase.GetLineFromCharIndex(System.Int32)">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.GetLineFromCharIndex.html#C1_Win_Input_Base_ITextBoxBase_GetLineFromCharIndex_System_Int32_">GetLineFromCharIndex(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves the line number from the specified character position within the text of the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_GetPositionFromCharIndex_System_Int32_" data-uid="C1.Win.Input.Base.ITextBoxBase.GetPositionFromCharIndex(System.Int32)">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.GetPositionFromCharIndex.html#C1_Win_Input_Base_ITextBoxBase_GetPositionFromCharIndex_System_Int32_">GetPositionFromCharIndex(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves the location within the control at the specified character index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_Paste" data-uid="C1.Win.Input.Base.ITextBoxBase.Paste">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.Paste.html#C1_Win_Input_Base_ITextBoxBase_Paste">Paste()</a>
        </td>
        <td class="markdown level1 summary"><p>Replaces the current selection in the text box with the contents of the Clipboard.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_ScrollToCaret" data-uid="C1.Win.Input.Base.ITextBoxBase.ScrollToCaret">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.ScrollToCaret.html#C1_Win_Input_Base_ITextBoxBase_ScrollToCaret">ScrollToCaret()</a>
        </td>
        <td class="markdown level1 summary"><p>Scrolls the contents of the control to the current caret position.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_Select_System_Int32_System_Int32_" data-uid="C1.Win.Input.Base.ITextBoxBase.Select(System.Int32,System.Int32)">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.Select.html#C1_Win_Input_Base_ITextBoxBase_Select_System_Int32_System_Int32_">Select(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Selects a range of text in the text box.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_SelectAll" data-uid="C1.Win.Input.Base.ITextBoxBase.SelectAll">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.SelectAll.html#C1_Win_Input_Base_ITextBoxBase_SelectAll">SelectAll()</a>
        </td>
        <td class="markdown level1 summary"><p>Selects all text in the text box.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_Undo" data-uid="C1.Win.Input.Base.ITextBoxBase.Undo">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.Undo.html#C1_Win_Input_Base_ITextBoxBase_Undo">Undo()</a>
        </td>
        <td class="markdown level1 summary"><p>Undoes the last edit operation in the text box.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_AcceptsTabChanged" data-uid="C1.Win.Input.Base.ITextBoxBase.AcceptsTabChanged">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.AcceptsTabChanged.html">AcceptsTabChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the value of the AcceptsTab property has changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_Click" data-uid="C1.Win.Input.Base.ITextBoxBase.Click">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.Click.html">Click</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the text box is clicked.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_HideSelectionChanged" data-uid="C1.Win.Input.Base.ITextBoxBase.HideSelectionChanged">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.HideSelectionChanged.html">HideSelectionChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the value of the HideSelection property has changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_ModifiedChanged" data-uid="C1.Win.Input.Base.ITextBoxBase.ModifiedChanged">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.ModifiedChanged.html">ModifiedChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the value of the Modified property has changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_MultilineChanged" data-uid="C1.Win.Input.Base.ITextBoxBase.MultilineChanged">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.MultilineChanged.html">MultilineChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the value of the Multiline property has changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Base_ITextBoxBase_ReadOnlyChanged" data-uid="C1.Win.Input.Base.ITextBoxBase.ReadOnlyChanged">
          <a class="xref" href="C1.Win.Input.Base.ITextBoxBase.ReadOnlyChanged.html">ReadOnlyChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the value of the ReadOnly property has changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
