# C1.Win.Tile.TextElement

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Tile_TextElement" data-uid="C1.Win.Tile.TextElement" class="text-break">TextElement Class
</h1>
  <div class="markdown level0 summary"><p>The element drawing some 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="C1.Win.Tile.BaseElement.html">BaseElement</a></div>
    <div class="level2"><span class="xref">TextElement</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Tile.html">C1.Win.Tile</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.TileControl.10.dll</h6>
  <h5 id="C1_Win_Tile_TextElement_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class TextElement : BaseElement, IDisposable, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class TextElement
    Inherits BaseElement
    Implements IDisposable, ICloneable</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_Win_Tile_TextElement__ctor" data-uid="C1.Win.Tile.TextElement.#ctor">
          <a class="xref" href="C1.Win.Tile.TextElement.-ctor.html#C1_Win_Tile_TextElement__ctor">TextElement()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Win.Tile.TextElement.html">TextElement</a>.</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_Win_Tile_TextElement_BackColor" data-uid="C1.Win.Tile.TextElement.BackColor">
          <a class="xref" href="C1.Win.Tile.TextElement.BackColor.html#C1_Win_Tile_TextElement_BackColor">BackColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text background color.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TextElement_BackColorSelector" data-uid="C1.Win.Tile.TextElement.BackColorSelector">
          <a class="xref" href="C1.Win.Tile.TextElement.BackColorSelector.html#C1_Win_Tile_TextElement_BackColorSelector">BackColorSelector</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating which property of a <a class="xref" href="C1.Win.Tile.Tile.html">Tile</a> object
behaves as the source of background color for this element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TextElement_DirectionVertical" data-uid="C1.Win.Tile.TextElement.DirectionVertical">
          <a class="xref" href="C1.Win.Tile.TextElement.DirectionVertical.html#C1_Win_Tile_TextElement_DirectionVertical">DirectionVertical</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the text is vertically aligned (if so the background color is not used).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TextElement_Font" data-uid="C1.Win.Tile.TextElement.Font">
          <a class="xref" href="C1.Win.Tile.TextElement.Font.html#C1_Win_Tile_TextElement_Font">Font</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the font for the text element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TextElement_FontBold" data-uid="C1.Win.Tile.TextElement.FontBold">
          <a class="xref" href="C1.Win.Tile.TextElement.FontBold.html#C1_Win_Tile_TextElement_FontBold">FontBold</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that indicates whether the element shows bold text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TextElement_FontItalic" data-uid="C1.Win.Tile.TextElement.FontItalic">
          <a class="xref" href="C1.Win.Tile.TextElement.FontItalic.html#C1_Win_Tile_TextElement_FontItalic">FontItalic</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that indicates whether the element shows italic text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TextElement_FontPadding" data-uid="C1.Win.Tile.TextElement.FontPadding">
          <a class="xref" href="C1.Win.Tile.TextElement.FontPadding.html#C1_Win_Tile_TextElement_FontPadding">FontPadding</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the text bounding rectangle should include padding (only if the text has background).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TextElement_FontSize" data-uid="C1.Win.Tile.TextElement.FontSize">
          <a class="xref" href="C1.Win.Tile.TextElement.FontSize.html#C1_Win_Tile_TextElement_FontSize">FontSize</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the font size for the text element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TextElement_FontStrikeout" data-uid="C1.Win.Tile.TextElement.FontStrikeout">
          <a class="xref" href="C1.Win.Tile.TextElement.FontStrikeout.html#C1_Win_Tile_TextElement_FontStrikeout">FontStrikeout</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that indicates whether the element shows text with a line through the middle.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TextElement_FontUnderline" data-uid="C1.Win.Tile.TextElement.FontUnderline">
          <a class="xref" href="C1.Win.Tile.TextElement.FontUnderline.html#C1_Win_Tile_TextElement_FontUnderline">FontUnderline</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that indicates whether the element shows underlined text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TextElement_ForeColor" data-uid="C1.Win.Tile.TextElement.ForeColor">
          <a class="xref" href="C1.Win.Tile.TextElement.ForeColor.html#C1_Win_Tile_TextElement_ForeColor">ForeColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the foreground color of the text element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TextElement_ForeColorSelector" data-uid="C1.Win.Tile.TextElement.ForeColorSelector">
          <a class="xref" href="C1.Win.Tile.TextElement.ForeColorSelector.html#C1_Win_Tile_TextElement_ForeColorSelector">ForeColorSelector</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating which property of a <a class="xref" href="C1.Win.Tile.Tile.html">Tile</a> object
behaves as the source of foreground color for this element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TextElement_MeasureTrailingSpaces" data-uid="C1.Win.Tile.TextElement.MeasureTrailingSpaces">
          <a class="xref" href="C1.Win.Tile.TextElement.MeasureTrailingSpaces.html#C1_Win_Tile_TextElement_MeasureTrailingSpaces">MeasureTrailingSpaces</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the text bounding rectangle includes the trailing space at the end of each line (only if the text has no background).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TextElement_RightToLeft" data-uid="C1.Win.Tile.TextElement.RightToLeft">
          <a class="xref" href="C1.Win.Tile.TextElement.RightToLeft.html#C1_Win_Tile_TextElement_RightToLeft">RightToLeft</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the text should be displayed from right to left.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TextElement_SingleLine" data-uid="C1.Win.Tile.TextElement.SingleLine">
          <a class="xref" href="C1.Win.Tile.TextElement.SingleLine.html#C1_Win_Tile_TextElement_SingleLine">SingleLine</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether text should be displayed in a single line.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TextElement_Text" data-uid="C1.Win.Tile.TextElement.Text">
          <a class="xref" href="C1.Win.Tile.TextElement.Text.html#C1_Win_Tile_TextElement_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text displayed in unbound mode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TextElement_TextSelector" data-uid="C1.Win.Tile.TextElement.TextSelector">
          <a class="xref" href="C1.Win.Tile.TextElement.TextSelector.html#C1_Win_Tile_TextElement_TextSelector">TextSelector</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating which property of a <a class="xref" href="C1.Win.Tile.Tile.html">Tile</a> object
behaves as the source of text that will be displayed by this element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TextElement_TextTrimming" data-uid="C1.Win.Tile.TextElement.TextTrimming">
          <a class="xref" href="C1.Win.Tile.TextElement.TextTrimming.html#C1_Win_Tile_TextElement_TextTrimming">TextTrimming</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets how to trim characters that do not fit in the space available.</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_Tile_TextElement_CopySettingsFrom_C1_Win_Tile_BaseElement_" data-uid="C1.Win.Tile.TextElement.CopySettingsFrom(C1.Win.Tile.BaseElement)">
          <a class="xref" href="C1.Win.Tile.TextElement.CopySettingsFrom.html#C1_Win_Tile_TextElement_CopySettingsFrom_C1_Win_Tile_BaseElement_">CopySettingsFrom(BaseElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies settings from the given element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TextElement_CreateInstance" data-uid="C1.Win.Tile.TextElement.CreateInstance">
          <a class="xref" href="C1.Win.Tile.TextElement.CreateInstance.html#C1_Win_Tile_TextElement_CreateInstance">CreateInstance()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an instance of the <a class="xref" href="C1.Win.Tile.TextElement.html">TextElement</a> element copy.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TextElement_Dispose_System_Boolean_" data-uid="C1.Win.Tile.TextElement.Dispose(System.Boolean)">
          <a class="xref" href="C1.Win.Tile.TextElement.Dispose.html#C1_Win_Tile_TextElement_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Clean up any resources being used.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TextElement_ResetBackColor" data-uid="C1.Win.Tile.TextElement.ResetBackColor">
          <a class="xref" href="C1.Win.Tile.TextElement.ResetBackColor.html#C1_Win_Tile_TextElement_ResetBackColor">ResetBackColor()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the value of the <a class="xref" href="C1.Win.Tile.TextElement.BackColor.html#C1_Win_Tile_TextElement_BackColor">BackColor</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TextElement_ResetForeColor" data-uid="C1.Win.Tile.TextElement.ResetForeColor">
          <a class="xref" href="C1.Win.Tile.TextElement.ResetForeColor.html#C1_Win_Tile_TextElement_ResetForeColor">ResetForeColor()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets the value of the <a class="xref" href="C1.Win.Tile.TextElement.ForeColor.html#C1_Win_Tile_TextElement_ForeColor">ForeColor</a> property.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
