# C1.Blazor.Input.C1TextBox

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Blazor_Input_C1TextBox" data-uid="C1.Blazor.Input.C1TextBox" class="text-break">C1TextBox Class
</h1>
  <div class="markdown level0 summary"><p>Represents a control that can be used to display and edit plain text,</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.components.componentbase">ComponentBase</a></div>
    <div class="level2"><a class="xref" href="../C1.Blazor.Core/C1.Blazor.Core.C1View.html">C1View</a></div>
    <div class="level3"><span class="xref">C1TextBox</span></div>
      <div class="level4"><a class="xref" href="C1.Blazor.Input.C1AutoCompleteTextBox.html">C1AutoCompleteTextBox</a></div>
      <div class="level4"><a class="xref" href="C1.Blazor.Input.C1MaskedTextBox.html">C1MaskedTextBox</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.components.icomponent">IComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.components.ihandleafterrender">IHandleAfterRender</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.components.ihandleevent">IHandleEvent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="../C1.Blazor.Core/C1.Blazor.Core.IDependencyObject.html">IDependencyObject</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Blazor.Input.html">C1.Blazor.Input</a></h6>
  <h6><strong>Assembly</strong>: C1.Blazor.Input.dll</h6>
  <h5 id="C1_Blazor_Input_C1TextBox_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1TextBox : C1View, IComponent, IHandleAfterRender, IHandleEvent, IDisposable, IDependencyObject</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1TextBox
    Inherits C1View
    Implements IComponent, IHandleAfterRender, IHandleEvent, IDisposable, IDependencyObject</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox__ctor" data-uid="C1.Blazor.Input.C1TextBox.#ctor">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.-ctor.html#C1_Blazor_Input_C1TextBox__ctor">C1TextBox()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Blazor.Input.C1TextBox.html">C1TextBox</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_BrowserAutocompleteProperty" data-uid="C1.Blazor.Input.C1TextBox.BrowserAutocompleteProperty">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.BrowserAutocompleteProperty.html">BrowserAutocompleteProperty</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_IsReadOnlyProperty" data-uid="C1.Blazor.Input.C1TextBox.IsReadOnlyProperty">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.IsReadOnlyProperty.html">IsReadOnlyProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.Blazor.Input.C1TextBox.IsReadOnly.html#C1_Blazor_Input_C1TextBox_IsReadOnly">IsReadOnly</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_MaxLengthProperty" data-uid="C1.Blazor.Input.C1TextBox.MaxLengthProperty">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.MaxLengthProperty.html">MaxLengthProperty</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_MaxProperty" data-uid="C1.Blazor.Input.C1TextBox.MaxProperty">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.MaxProperty.html">MaxProperty</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_MinProperty" data-uid="C1.Blazor.Input.C1TextBox.MinProperty">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.MinProperty.html">MinProperty</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_PlaceholderProperty" data-uid="C1.Blazor.Input.C1TextBox.PlaceholderProperty">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.PlaceholderProperty.html">PlaceholderProperty</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_StepProperty" data-uid="C1.Blazor.Input.C1TextBox.StepProperty">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.StepProperty.html">StepProperty</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_StopOnClickPropagationProperty" data-uid="C1.Blazor.Input.C1TextBox.StopOnClickPropagationProperty">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.StopOnClickPropagationProperty.html">StopOnClickPropagationProperty</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_TextProperty" data-uid="C1.Blazor.Input.C1TextBox.TextProperty">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.TextProperty.html">TextProperty</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_TypeProperty" data-uid="C1.Blazor.Input.C1TextBox.TypeProperty">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.TypeProperty.html">TypeProperty</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <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_Blazor_Input_C1TextBox_AdditionalAttributes" data-uid="C1.Blazor.Input.C1TextBox.AdditionalAttributes">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.AdditionalAttributes.html#C1_Blazor_Input_C1TextBox_AdditionalAttributes">AdditionalAttributes</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a collection of additional attributes that will be applied to the created element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_BrowserAutocomplete" data-uid="C1.Blazor.Input.C1TextBox.BrowserAutocomplete">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.BrowserAutocomplete.html#C1_Blazor_Input_C1TextBox_BrowserAutocomplete">BrowserAutocomplete</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the browser will show suggestions based on previous entered texts.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_FinishedTextChange" data-uid="C1.Blazor.Input.C1TextBox.FinishedTextChange">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.FinishedTextChange.html#C1_Blazor_Input_C1TextBox_FinishedTextChange">FinishedTextChange</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the callback called when the text changing is finished.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_IsPlaceholderVisible" data-uid="C1.Blazor.Input.C1TextBox.IsPlaceholderVisible">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.IsPlaceholderVisible.html#C1_Blazor_Input_C1TextBox_IsPlaceholderVisible">IsPlaceholderVisible</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the placeholder is visible.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_IsReadOnly" data-uid="C1.Blazor.Input.C1TextBox.IsReadOnly">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.IsReadOnly.html#C1_Blazor_Input_C1TextBox_IsReadOnly">IsReadOnly</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the textbox is read-only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_KeyPressed" data-uid="C1.Blazor.Input.C1TextBox.KeyPressed">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.KeyPressed.html#C1_Blazor_Input_C1TextBox_KeyPressed">KeyPressed</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the callback called when a key is pressed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_Max" data-uid="C1.Blazor.Input.C1TextBox.Max">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.Max.html#C1_Blazor_Input_C1TextBox_Max">Max</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the max value accepted in the text box.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_MaxLength" data-uid="C1.Blazor.Input.C1TextBox.MaxLength">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.MaxLength.html#C1_Blazor_Input_C1TextBox_MaxLength">MaxLength</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the maximum number of characters allowed in the text box.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_Min" data-uid="C1.Blazor.Input.C1TextBox.Min">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.Min.html#C1_Blazor_Input_C1TextBox_Min">Min</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the min value accepted in the text box.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_Placeholder" data-uid="C1.Blazor.Input.C1TextBox.Placeholder">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.Placeholder.html#C1_Blazor_Input_C1TextBox_Placeholder">Placeholder</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the placeholder displayed when there is no entered text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_Step" data-uid="C1.Blazor.Input.C1TextBox.Step">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.Step.html#C1_Blazor_Input_C1TextBox_Step">Step</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the kind of step accepted by the text box when the <a class="xref" href="C1.Blazor.Input.C1TextBox.Type.html#C1_Blazor_Input_C1TextBox_Type">Type</a> is numeric.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_StopOnClickPropagation" data-uid="C1.Blazor.Input.C1TextBox.StopOnClickPropagation">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.StopOnClickPropagation.html#C1_Blazor_Input_C1TextBox_StopOnClickPropagation">StopOnClickPropagation</a>
        </td>
        <td class="markdown level1 summary"><p>Stop the onclick event from outside</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_Tag" data-uid="C1.Blazor.Input.C1TextBox.Tag">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.Tag.html#C1_Blazor_Input_C1TextBox_Tag">Tag</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets an arbitrary object value that can be used to store custom information about this element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_Text" data-uid="C1.Blazor.Input.C1TextBox.Text">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.Text.html#C1_Blazor_Input_C1TextBox_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text displayed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_TextChanged" data-uid="C1.Blazor.Input.C1TextBox.TextChanged">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.TextChanged.html#C1_Blazor_Input_C1TextBox_TextChanged">TextChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the callback called when the text changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_Type" data-uid="C1.Blazor.Input.C1TextBox.Type">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.Type.html#C1_Blazor_Input_C1TextBox_Type">Type</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the type of text to be entered.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_UpdatingFromUI" data-uid="C1.Blazor.Input.C1TextBox.UpdatingFromUI">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.UpdatingFromUI.html#C1_Blazor_Input_C1TextBox_UpdatingFromUI">UpdatingFromUI</a>
        </td>
        <td class="markdown level1 summary"></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_Blazor_Input_C1TextBox_BuildRenderTree_Microsoft_AspNetCore_Components_Rendering_RenderTreeBuilder_" data-uid="C1.Blazor.Input.C1TextBox.BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder)">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.BuildRenderTree.html#C1_Blazor_Input_C1TextBox_BuildRenderTree_Microsoft_AspNetCore_Components_Rendering_RenderTreeBuilder_">BuildRenderTree(RenderTreeBuilder)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_Dispose_System_Boolean_" data-uid="C1.Blazor.Input.C1TextBox.Dispose(System.Boolean)">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.Dispose.html#C1_Blazor_Input_C1TextBox_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_FocusAsync" data-uid="C1.Blazor.Input.C1TextBox.FocusAsync">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.FocusAsync.html#C1_Blazor_Input_C1TextBox_FocusAsync">FocusAsync()</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the focus.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_GetActualType" data-uid="C1.Blazor.Input.C1TextBox.GetActualType">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.GetActualType.html#C1_Blazor_Input_C1TextBox_GetActualType">GetActualType()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_GetAdditionalAttributes" data-uid="C1.Blazor.Input.C1TextBox.GetAdditionalAttributes">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.GetAdditionalAttributes.html#C1_Blazor_Input_C1TextBox_GetAdditionalAttributes">GetAdditionalAttributes()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_GetInputStyle" data-uid="C1.Blazor.Input.C1TextBox.GetInputStyle">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.GetInputStyle.html#C1_Blazor_Input_C1TextBox_GetInputStyle">GetInputStyle()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_InitializeAsync" data-uid="C1.Blazor.Input.C1TextBox.InitializeAsync">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.InitializeAsync.html#C1_Blazor_Input_C1TextBox_InitializeAsync">InitializeAsync()</a>
        </td>
        <td class="markdown level1 summary"><p>This method is called when the component is initialized.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_OnAfterRender_System_Boolean_" data-uid="C1.Blazor.Input.C1TextBox.OnAfterRender(System.Boolean)">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.OnAfterRender.html#C1_Blazor_Input_C1TextBox_OnAfterRender_System_Boolean_">OnAfterRender(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_OnTextChangedAsync_System_String_" data-uid="C1.Blazor.Input.C1TextBox.OnTextChangedAsync(System.String)">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.OnTextChangedAsync.html#C1_Blazor_Input_C1TextBox_OnTextChangedAsync_System_String_">OnTextChangedAsync(string)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_OnTextPropertyChanged_System_String_System_String_" data-uid="C1.Blazor.Input.C1TextBox.OnTextPropertyChanged(System.String,System.String)">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.OnTextPropertyChanged.html#C1_Blazor_Input_C1TextBox_OnTextPropertyChanged_System_String_System_String_">OnTextPropertyChanged(string, string)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Blazor_Input_C1TextBox_Select_System_Int32_System_Int32_" data-uid="C1.Blazor.Input.C1TextBox.Select(System.Int32,System.Int32)">
          <a class="xref" href="C1.Blazor.Input.C1TextBox.Select.html#C1_Blazor_Input_C1TextBox_Select_System_Int32_System_Int32_">Select(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Selects the text between the specified <code class="paramref">start</code> and <code class="paramref">length</code>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
