# C1.Framework.TextBoxElement

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_TextBoxElement" data-uid="C1.Framework.TextBoxElement" class="text-break">TextBoxElement Class
</h1>
  <div class="markdown level0 summary"><p><a class="xref" href="C1.Framework.Element.html">Element</a> that hosts a <a class="xref" href="C1.Framework.TextBoxElement.TextBox.html#C1_Framework_TextBoxElement_TextBox">TextBox</a> control.</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="C1.Framework.Element.html">Element</a></div>
    <div class="level2"><a class="xref" href="C1.Framework.ControlHostElement.html">ControlHostElement</a></div>
    <div class="level3"><span class="xref">TextBoxElement</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.Win.Accessibility.ISupportUia.html">ISupportUia</a></div>
    <div><a class="xref" href="C1.Framework.IControlHostElement.html">IControlHostElement</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Framework.html">C1.Framework</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.10.dll</h6>
  <h5 id="C1_Framework_TextBoxElement_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class TextBoxElement : ControlHostElement, ISupportUia, IControlHostElement</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class TextBoxElement
    Inherits ControlHostElement
    Implements ISupportUia, IControlHostElement</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_Framework_TextBoxElement__ctor" data-uid="C1.Framework.TextBoxElement.#ctor">
          <a class="xref" href="C1.Framework.TextBoxElement.-ctor.html#C1_Framework_TextBoxElement__ctor">TextBoxElement()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.TextBoxElement.html">TextBoxElement</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_TextBoxElement__ctor_C1_Framework_Style_" data-uid="C1.Framework.TextBoxElement.#ctor(C1.Framework.Style)">
          <a class="xref" href="C1.Framework.TextBoxElement.-ctor.html#C1_Framework_TextBoxElement__ctor_C1_Framework_Style_">TextBoxElement(Style)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.TextBoxElement.html">TextBoxElement</a> class with specified  style settings.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_TextBoxElement__ctor_C1_Framework_Style_System_String_" data-uid="C1.Framework.TextBoxElement.#ctor(C1.Framework.Style,System.String)">
          <a class="xref" href="C1.Framework.TextBoxElement.-ctor.html#C1_Framework_TextBoxElement__ctor_C1_Framework_Style_System_String_">TextBoxElement(Style, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.TextBoxElement.html">TextBoxElement</a> class with specified text and style settings.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_TextBoxElement__ctor_System_String_" data-uid="C1.Framework.TextBoxElement.#ctor(System.String)">
          <a class="xref" href="C1.Framework.TextBoxElement.-ctor.html#C1_Framework_TextBoxElement__ctor_System_String_">TextBoxElement(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Framework.TextBoxElement.html">TextBoxElement</a> class with specified text.</p>
</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_Framework_TextBoxElement_LineCount" data-uid="C1.Framework.TextBoxElement.LineCount">
          <a class="xref" href="C1.Framework.TextBoxElement.LineCount.html#C1_Framework_TextBoxElement_LineCount">LineCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of lines in the text box control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_TextBoxElement_Text" data-uid="C1.Framework.TextBoxElement.Text">
          <a class="xref" href="C1.Framework.TextBoxElement.Text.html#C1_Framework_TextBoxElement_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the current text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_TextBoxElement_TextBox" data-uid="C1.Framework.TextBoxElement.TextBox">
          <a class="xref" href="C1.Framework.TextBoxElement.TextBox.html#C1_Framework_TextBoxElement_TextBox">TextBox</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the reference to the hosted <a class="xref" href="C1.Framework.TextBoxElement.TextBox.html#C1_Framework_TextBoxElement_TextBox">TextBox</a> control.</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_Framework_TextBoxElement_ApplyStyle" data-uid="C1.Framework.TextBoxElement.ApplyStyle">
          <a class="xref" href="C1.Framework.TextBoxElement.ApplyStyle.html#C1_Framework_TextBoxElement_ApplyStyle">ApplyStyle()</a>
        </td>
        <td class="markdown level1 summary"><p>Copies style attributes from the element to the hosted control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_TextBoxElement_ApplyTextBoxStyle" data-uid="C1.Framework.TextBoxElement.ApplyTextBoxStyle">
          <a class="xref" href="C1.Framework.TextBoxElement.ApplyTextBoxStyle.html#C1_Framework_TextBoxElement_ApplyTextBoxStyle">ApplyTextBoxStyle()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Framework_TextBoxElement_CreateTextBoxControl" data-uid="C1.Framework.TextBoxElement.CreateTextBoxControl">
          <a class="xref" href="C1.Framework.TextBoxElement.CreateTextBoxControl.html#C1_Framework_TextBoxElement_CreateTextBoxControl">CreateTextBoxControl()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Framework_TextBoxElement_GetVisibleTextRect" data-uid="C1.Framework.TextBoxElement.GetVisibleTextRect">
          <a class="xref" href="C1.Framework.TextBoxElement.GetVisibleTextRect.html#C1_Framework_TextBoxElement_GetVisibleTextRect">GetVisibleTextRect()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets visible text bounds.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_TextBoxElement_Layout_System_Drawing_Graphics_" data-uid="C1.Framework.TextBoxElement.Layout(System.Drawing.Graphics)">
          <a class="xref" href="C1.Framework.TextBoxElement.Layout.html#C1_Framework_TextBoxElement_Layout_System_Drawing_Graphics_">Layout(Graphics)</a>
        </td>
        <td class="markdown level1 summary"><p>Lays out this element based on its style and contents.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_TextBoxElement_OnTextChanged_System_EventArgs_" data-uid="C1.Framework.TextBoxElement.OnTextChanged(System.EventArgs)">
          <a class="xref" href="C1.Framework.TextBoxElement.OnTextChanged.html#C1_Framework_TextBoxElement_OnTextChanged_System_EventArgs_">OnTextChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Override to get text change notifications.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_TextBoxElement_UpdateAlignment" data-uid="C1.Framework.TextBoxElement.UpdateAlignment">
          <a class="xref" href="C1.Framework.TextBoxElement.UpdateAlignment.html#C1_Framework_TextBoxElement_UpdateAlignment">UpdateAlignment()</a>
        </td>
        <td class="markdown level1 summary"><p>Updates the alignment of the text box control to reflect the current <a class="xref" href="C1.Framework.Style.html">Style</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
