# C1.Framework.Html.HtmlDiv.AddTextElement

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_Html_HtmlDiv_AddTextElement_" data-uid="C1.Framework.Html.HtmlDiv.AddTextElement*">AddTextElement Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_Html_HtmlDiv_AddTextElement_" data-uid="C1.Framework.Html.HtmlDiv.AddTextElement*"></a>
<h4 id="C1_Framework_Html_HtmlDiv_AddTextElement_C1_Framework_Style_System_String_System_Boolean_" data-uid="C1.Framework.Html.HtmlDiv.AddTextElement(C1.Framework.Style,System.String,System.Boolean)">AddTextElement(Style, string, bool)</h4>
<div class="markdown level1 summary"><p>Adds a string with a given style to this paragraph.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected override void AddTextElement(Style s, string text, bool wrappable)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overrides Sub AddTextElement(s As Style, text As String, wrappable As Boolean)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Framework.Style.html">Style</a></td>
      <td><span class="parametername">s</span></td>
      <td><p><a class="xref" href="C1.Framework.Style.html">Style</a> used to render the new string.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>String to add to this paragraph.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">wrappable</span></td>
      <td><p>Indicates if the text element can be wrapped to new line.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="C1.Framework.ParagraphElement.AddTextElement.html#C1_Framework_ParagraphElement_AddTextElement_C1_Framework_Style_System_String_System_Boolean_">ParagraphElement.AddTextElement(Style, string, bool)</a></div>
</div>
