# C1.iOS.Input.C1TextBox

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_iOS_Input_C1TextBox" data-uid="C1.iOS.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"><span class="xref">C1TextBox</span></div>
      <div class="level2"><a class="xref" href="C1.iOS.Input.C1AutoCompleteTextBox.html">C1AutoCompleteTextBox</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="../C1.iOS.Core/C1.iOS.Core.IDependencyObject.html">IDependencyObject</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.iOS.Input.html">C1.iOS.Input</a></h6>
  <h6><strong>Assembly</strong>: C1.iOS.Input.dll</h6>
  <h5 id="C1_iOS_Input_C1TextBox_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1TextBox : UITextField, IDependencyObject</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1TextBox
    Inherits UITextField
    Implements 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_iOS_Input_C1TextBox__ctor" data-uid="C1.iOS.Input.C1TextBox.#ctor">
          <a class="xref" href="C1.iOS.Input.C1TextBox.-ctor.html#C1_iOS_Input_C1TextBox__ctor">C1TextBox()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.iOS.Input.C1TextBox.html">C1TextBox</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox__ctor_CoreGraphics_CGRect_" data-uid="C1.iOS.Input.C1TextBox.#ctor(CoreGraphics.CGRect)">
          <a class="xref" href="C1.iOS.Input.C1TextBox.-ctor.html#C1_iOS_Input_C1TextBox__ctor_CoreGraphics_CGRect_">C1TextBox(CGRect)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.iOS.Input.C1TextBox.html">C1TextBox</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox__ctor_System_IntPtr_" data-uid="C1.iOS.Input.C1TextBox.#ctor(System.IntPtr)">
          <a class="xref" href="C1.iOS.Input.C1TextBox.-ctor.html#C1_iOS_Input_C1TextBox__ctor_System_IntPtr_">C1TextBox(nint)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.iOS.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_iOS_Input_C1TextBox_BackgroundProperty" data-uid="C1.iOS.Input.C1TextBox.BackgroundProperty">
          <a class="xref" href="C1.iOS.Input.C1TextBox.BackgroundProperty.html">BackgroundProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.iOS.Input.C1TextBox.Background.html#C1_iOS_Input_C1TextBox_Background">Background</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_BorderBrushProperty" data-uid="C1.iOS.Input.C1TextBox.BorderBrushProperty">
          <a class="xref" href="C1.iOS.Input.C1TextBox.BorderBrushProperty.html">BorderBrushProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.iOS.Input.C1TextBox.BorderBrush.html#C1_iOS_Input_C1TextBox_BorderBrush">BorderBrush</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_BorderThicknessProperty" data-uid="C1.iOS.Input.C1TextBox.BorderThicknessProperty">
          <a class="xref" href="C1.iOS.Input.C1TextBox.BorderThicknessProperty.html">BorderThicknessProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.iOS.Input.C1TextBox.BorderThickness.html#C1_iOS_Input_C1TextBox_BorderThickness">BorderThickness</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_CommandDown" data-uid="C1.iOS.Input.C1TextBox.CommandDown">
          <a class="xref" href="C1.iOS.Input.C1TextBox.CommandDown.html">CommandDown</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_CommandEnter" data-uid="C1.iOS.Input.C1TextBox.CommandEnter">
          <a class="xref" href="C1.iOS.Input.C1TextBox.CommandEnter.html">CommandEnter</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_CommandLeft" data-uid="C1.iOS.Input.C1TextBox.CommandLeft">
          <a class="xref" href="C1.iOS.Input.C1TextBox.CommandLeft.html">CommandLeft</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_CommandRight" data-uid="C1.iOS.Input.C1TextBox.CommandRight">
          <a class="xref" href="C1.iOS.Input.C1TextBox.CommandRight.html">CommandRight</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_CommandTab" data-uid="C1.iOS.Input.C1TextBox.CommandTab">
          <a class="xref" href="C1.iOS.Input.C1TextBox.CommandTab.html">CommandTab</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_CommandUp" data-uid="C1.iOS.Input.C1TextBox.CommandUp">
          <a class="xref" href="C1.iOS.Input.C1TextBox.CommandUp.html">CommandUp</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_CornerRadiusProperty" data-uid="C1.iOS.Input.C1TextBox.CornerRadiusProperty">
          <a class="xref" href="C1.iOS.Input.C1TextBox.CornerRadiusProperty.html">CornerRadiusProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.iOS.Input.C1TextBox.CornerRadius.html#C1_iOS_Input_C1TextBox_CornerRadius">CornerRadius</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_ForegroundProperty" data-uid="C1.iOS.Input.C1TextBox.ForegroundProperty">
          <a class="xref" href="C1.iOS.Input.C1TextBox.ForegroundProperty.html">ForegroundProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.iOS.Input.C1TextBox.Foreground.html#C1_iOS_Input_C1TextBox_Foreground">Foreground</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_PaddingProperty" data-uid="C1.iOS.Input.C1TextBox.PaddingProperty">
          <a class="xref" href="C1.iOS.Input.C1TextBox.PaddingProperty.html">PaddingProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.iOS.Input.C1TextBox.Padding.html#C1_iOS_Input_C1TextBox_Padding">Padding</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_selector" data-uid="C1.iOS.Input.C1TextBox.selector">
          <a class="xref" href="C1.iOS.Input.C1TextBox.selector.html">selector</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_iOS_Input_C1TextBox_Background" data-uid="C1.iOS.Input.C1TextBox.Background">
          <a class="xref" href="C1.iOS.Input.C1TextBox.Background.html#C1_iOS_Input_C1TextBox_Background">Background</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <span class="xref">CoreAnimation.CALayer</span> used to paint the background.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_BorderBrush" data-uid="C1.iOS.Input.C1TextBox.BorderBrush">
          <a class="xref" href="C1.iOS.Input.C1TextBox.BorderBrush.html#C1_iOS_Input_C1TextBox_BorderBrush">BorderBrush</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <span class="xref">CoreAnimation.CALayer</span> used to paint the border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_BorderThickness" data-uid="C1.iOS.Input.C1TextBox.BorderThickness">
          <a class="xref" href="C1.iOS.Input.C1TextBox.BorderThickness.html#C1_iOS_Input_C1TextBox_BorderThickness">BorderThickness</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <span class="xref">UIKit.UIEdgeInsets</span> of the border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_CornerRadius" data-uid="C1.iOS.Input.C1TextBox.CornerRadius">
          <a class="xref" href="C1.iOS.Input.C1TextBox.CornerRadius.html#C1_iOS_Input_C1TextBox_CornerRadius">CornerRadius</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="../C1.iOS.Core/C1.iOS.Core.C1CornerRadius.html">C1CornerRadius</a> of the border.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_Foreground" data-uid="C1.iOS.Input.C1TextBox.Foreground">
          <a class="xref" href="C1.iOS.Input.C1TextBox.Foreground.html#C1_iOS_Input_C1TextBox_Foreground">Foreground</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <span class="xref">CoreAnimation.CALayer</span> used to paint the foreground (text and icons).</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_IsDisposed" data-uid="C1.iOS.Input.C1TextBox.IsDisposed">
          <a class="xref" href="C1.iOS.Input.C1TextBox.IsDisposed.html#C1_iOS_Input_C1TextBox_IsDisposed">IsDisposed</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether this instance is disposed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_IsPlaceholderVisible" data-uid="C1.iOS.Input.C1TextBox.IsPlaceholderVisible">
          <a class="xref" href="C1.iOS.Input.C1TextBox.IsPlaceholderVisible.html#C1_iOS_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_iOS_Input_C1TextBox_KeyCommands" data-uid="C1.iOS.Input.C1TextBox.KeyCommands">
          <a class="xref" href="C1.iOS.Input.C1TextBox.KeyCommands.html#C1_iOS_Input_C1TextBox_KeyCommands">KeyCommands</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_Padding" data-uid="C1.iOS.Input.C1TextBox.Padding">
          <a class="xref" href="C1.iOS.Input.C1TextBox.Padding.html#C1_iOS_Input_C1TextBox_Padding">Padding</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the padding applied to the displayed text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_Tag" data-uid="C1.iOS.Input.C1TextBox.Tag">
          <a class="xref" href="C1.iOS.Input.C1TextBox.Tag.html#C1_iOS_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>
    </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_iOS_Input_C1TextBox_Dispose_System_Boolean_" data-uid="C1.iOS.Input.C1TextBox.Dispose(System.Boolean)">
          <a class="xref" href="C1.iOS.Input.C1TextBox.Dispose.html#C1_iOS_Input_C1TextBox_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_EditingRect_CoreGraphics_CGRect_" data-uid="C1.iOS.Input.C1TextBox.EditingRect(CoreGraphics.CGRect)">
          <a class="xref" href="C1.iOS.Input.C1TextBox.EditingRect.html#C1_iOS_Input_C1TextBox_EditingRect_CoreGraphics_CGRect_">EditingRect(CGRect)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_MovedToWindow" data-uid="C1.iOS.Input.C1TextBox.MovedToWindow">
          <a class="xref" href="C1.iOS.Input.C1TextBox.MovedToWindow.html#C1_iOS_Input_C1TextBox_MovedToWindow">MovedToWindow()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_OnBackgroundChanged" data-uid="C1.iOS.Input.C1TextBox.OnBackgroundChanged">
          <a class="xref" href="C1.iOS.Input.C1TextBox.OnBackgroundChanged.html#C1_iOS_Input_C1TextBox_OnBackgroundChanged">OnBackgroundChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the background changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_OnBorderBrushChanged" data-uid="C1.iOS.Input.C1TextBox.OnBorderBrushChanged">
          <a class="xref" href="C1.iOS.Input.C1TextBox.OnBorderBrushChanged.html#C1_iOS_Input_C1TextBox_OnBorderBrushChanged">OnBorderBrushChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the border brush changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_OnBorderThicknessChanged" data-uid="C1.iOS.Input.C1TextBox.OnBorderThicknessChanged">
          <a class="xref" href="C1.iOS.Input.C1TextBox.OnBorderThicknessChanged.html#C1_iOS_Input_C1TextBox_OnBorderThicknessChanged">OnBorderThicknessChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the border thickness changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_OnCornerRadiusChanged" data-uid="C1.iOS.Input.C1TextBox.OnCornerRadiusChanged">
          <a class="xref" href="C1.iOS.Input.C1TextBox.OnCornerRadiusChanged.html#C1_iOS_Input_C1TextBox_OnCornerRadiusChanged">OnCornerRadiusChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the corner-radius changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_OnForegroundChanged" data-uid="C1.iOS.Input.C1TextBox.OnForegroundChanged">
          <a class="xref" href="C1.iOS.Input.C1TextBox.OnForegroundChanged.html#C1_iOS_Input_C1TextBox_OnForegroundChanged">OnForegroundChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the foreground changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_OnPaddingChanged" data-uid="C1.iOS.Input.C1TextBox.OnPaddingChanged">
          <a class="xref" href="C1.iOS.Input.C1TextBox.OnPaddingChanged.html#C1_iOS_Input_C1TextBox_OnPaddingChanged">OnPaddingChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the padding changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_OnTextChanged_C1_iOS_Input_TextBoxChangedEventArgs_" data-uid="C1.iOS.Input.C1TextBox.OnTextChanged(C1.iOS.Input.TextBoxChangedEventArgs)">
          <a class="xref" href="C1.iOS.Input.C1TextBox.OnTextChanged.html#C1_iOS_Input_C1TextBox_OnTextChanged_C1_iOS_Input_TextBoxChangedEventArgs_">OnTextChanged(TextBoxChangedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the text changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_TextRect_CoreGraphics_CGRect_" data-uid="C1.iOS.Input.C1TextBox.TextRect(CoreGraphics.CGRect)">
          <a class="xref" href="C1.iOS.Input.C1TextBox.TextRect.html#C1_iOS_Input_C1TextBox_TextRect_CoreGraphics_CGRect_">TextRect(CGRect)</a>
        </td>
        <td class="markdown level1 summary"></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_iOS_Input_C1TextBox_KeyDown" data-uid="C1.iOS.Input.C1TextBox.KeyDown">
          <a class="xref" href="C1.iOS.Input.C1TextBox.KeyDown.html">KeyDown</a>
        </td>
        <td class="markdown level1 summary"><p>This event is raised when up, down, or enter keys are hit, or either when the cursor is at the beginning and left is hit or when the cursor is at the end and right is hit.</p>
</td>
      </tr>
      <tr>
        <td id="C1_iOS_Input_C1TextBox_TextChanged" data-uid="C1.iOS.Input.C1TextBox.TextChanged">
          <a class="xref" href="C1.iOS.Input.C1TextBox.TextChanged.html">TextChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the text changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
