# C1.WPF.RichTextBox.Documents.C1TextDecoration

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_RichTextBox_Documents_C1TextDecoration" data-uid="C1.WPF.RichTextBox.Documents.C1TextDecoration" class="text-break">C1TextDecoration Class
</h1>
  <div class="markdown level0 summary"><p>Represents a text decoration, which a visual ornamentation that is added to text (such as an underline).</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">C1TextDecoration</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.RichTextBox.Documents.html">C1.WPF.RichTextBox.Documents</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.RichTextBox.dll</h6>
  <h5 id="C1_WPF_RichTextBox_Documents_C1TextDecoration_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1TextDecoration</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1TextDecoration</code></pre>
  </div>
  <h5 id="C1_WPF_RichTextBox_Documents_C1TextDecoration_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>All text decorations are lines drawn horizontally above the text. The vertical location of the line can
be customized using the <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextDecoration.Location.html#C1_WPF_RichTextBox_Documents_C1TextDecoration_Location">Location</a> property, and its style can be set with the <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextDecoration.Style.html#C1_WPF_RichTextBox_Documents_C1TextDecoration_Style">Style</a>
property.</p>
</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_WPF_RichTextBox_Documents_C1TextDecoration__ctor" data-uid="C1.WPF.RichTextBox.Documents.C1TextDecoration.#ctor">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextDecoration.-ctor.html#C1_WPF_RichTextBox_Documents_C1TextDecoration__ctor">C1TextDecoration()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextDecoration.html">C1TextDecoration</a> object.</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_WPF_RichTextBox_Documents_C1TextDecoration_Location" data-uid="C1.WPF.RichTextBox.Documents.C1TextDecoration.Location">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextDecoration.Location.html#C1_WPF_RichTextBox_Documents_C1TextDecoration_Location">Location</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value of <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextDecorationLocation.html">C1TextDecorationLocation</a> that defines the vertical position of this <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextDecoration.html">C1TextDecoration</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_Documents_C1TextDecoration_LocationOffset" data-uid="C1.WPF.RichTextBox.Documents.C1TextDecoration.LocationOffset">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextDecoration.LocationOffset.html#C1_WPF_RichTextBox_Documents_C1TextDecoration_LocationOffset">LocationOffset</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the offset from the vertical position defined in the <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextDecoration.Location.html#C1_WPF_RichTextBox_Documents_C1TextDecoration_Location">Location</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_Documents_C1TextDecoration_LocationOffsetUnit" data-uid="C1.WPF.RichTextBox.Documents.C1TextDecoration.LocationOffsetUnit">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextDecoration.LocationOffsetUnit.html#C1_WPF_RichTextBox_Documents_C1TextDecoration_LocationOffsetUnit">LocationOffsetUnit</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value of <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextDecorationUnit.html">C1TextDecorationUnit</a> that defines the unit used for the <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextDecoration.LocationOffset.html#C1_WPF_RichTextBox_Documents_C1TextDecoration_LocationOffset">LocationOffset</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_Documents_C1TextDecoration_Style" data-uid="C1.WPF.RichTextBox.Documents.C1TextDecoration.Style">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextDecoration.Style.html#C1_WPF_RichTextBox_Documents_C1TextDecoration_Style">Style</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextDecoration.Style.html#C1_WPF_RichTextBox_Documents_C1TextDecoration_Style">Style</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_Documents_C1TextDecoration_Thickness" data-uid="C1.WPF.RichTextBox.Documents.C1TextDecoration.Thickness">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextDecoration.Thickness.html#C1_WPF_RichTextBox_Documents_C1TextDecoration_Thickness">Thickness</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the Thickness of the line drawn by this <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextDecoration.html">C1TextDecoration</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_Documents_C1TextDecoration_ThicknessUnit" data-uid="C1.WPF.RichTextBox.Documents.C1TextDecoration.ThicknessUnit">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextDecoration.ThicknessUnit.html#C1_WPF_RichTextBox_Documents_C1TextDecoration_ThicknessUnit">ThicknessUnit</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value of <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextDecorationUnit.html">C1TextDecorationUnit</a> that defines the unit used for the <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextDecoration.Thickness.html#C1_WPF_RichTextBox_Documents_C1TextDecoration_Thickness">Thickness</a> property.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
