# C1.WPF.RichTextBox.Documents.C1Length

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_RichTextBox_Documents_C1Length" data-uid="C1.WPF.RichTextBox.Documents.C1Length" class="text-break">C1Length Struct
</h1>
  <div class="markdown level0 summary"><p>Represents a length value used in <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextElement.html">C1TextElement</a>.</p>
</div>
  <div class="markdown level0 conceptual"></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.4.6.2.dll</h6>
  <h5 id="C1_WPF_RichTextBox_Documents_C1Length_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(C1LengthConverter))]
public struct C1Length</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(C1LengthConverter))&gt;
Public Structure C1Length</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_WPF_RichTextBox_Documents_C1Length__ctor_System_Double_" data-uid="C1.WPF.RichTextBox.Documents.C1Length.#ctor(System.Double)">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Length.-ctor.html#C1_WPF_RichTextBox_Documents_C1Length__ctor_System_Double_">C1Length(double)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Length.html">C1Length</a> with a pixel length.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_Documents_C1Length__ctor_System_Double_C1_WPF_RichTextBox_Documents_C1LengthUnitType_" data-uid="C1.WPF.RichTextBox.Documents.C1Length.#ctor(System.Double,C1.WPF.RichTextBox.Documents.C1LengthUnitType)">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Length.-ctor.html#C1_WPF_RichTextBox_Documents_C1Length__ctor_System_Double_C1_WPF_RichTextBox_Documents_C1LengthUnitType_">C1Length(double, C1LengthUnitType)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Length.html">C1Length</a>.</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_WPF_RichTextBox_Documents_C1Length_Auto" data-uid="C1.WPF.RichTextBox.Documents.C1Length.Auto">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Length.Auto.html">Auto</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an instance of <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Length.html">C1Length</a> that represents automatic length.</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_C1Length_IsAbsolute" data-uid="C1.WPF.RichTextBox.Documents.C1Length.IsAbsolute">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Length.IsAbsolute.html#C1_WPF_RichTextBox_Documents_C1Length_IsAbsolute">IsAbsolute</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether this length is an absolute value, that is, it is expressed in pixels.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_Documents_C1Length_IsAuto" data-uid="C1.WPF.RichTextBox.Documents.C1Length.IsAuto">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Length.IsAuto.html#C1_WPF_RichTextBox_Documents_C1Length_IsAuto">IsAuto</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether this length is auto.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_Documents_C1Length_IsPercent" data-uid="C1.WPF.RichTextBox.Documents.C1Length.IsPercent">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Length.IsPercent.html#C1_WPF_RichTextBox_Documents_C1Length_IsPercent">IsPercent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether this length is a percent.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_Documents_C1Length_UnitType" data-uid="C1.WPF.RichTextBox.Documents.C1Length.UnitType">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Length.UnitType.html#C1_WPF_RichTextBox_Documents_C1Length_UnitType">UnitType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the unit type of this length.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_Documents_C1Length_Value" data-uid="C1.WPF.RichTextBox.Documents.C1Length.Value">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Length.Value.html#C1_WPF_RichTextBox_Documents_C1Length_Value">Value</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the value of this length.</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_WPF_RichTextBox_Documents_C1Length_Equals_System_Object_" data-uid="C1.WPF.RichTextBox.Documents.C1Length.Equals(System.Object)">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Length.Equals.html#C1_WPF_RichTextBox_Documents_C1Length_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_Documents_C1Length_GetHashCode" data-uid="C1.WPF.RichTextBox.Documents.C1Length.GetHashCode">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Length.GetHashCode.html#C1_WPF_RichTextBox_Documents_C1Length_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_Documents_C1Length_Max_C1_WPF_RichTextBox_Documents_C1Length_C1_WPF_RichTextBox_Documents_C1Length_" data-uid="C1.WPF.RichTextBox.Documents.C1Length.Max(C1.WPF.RichTextBox.Documents.C1Length,C1.WPF.RichTextBox.Documents.C1Length)">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Length.Max.html#C1_WPF_RichTextBox_Documents_C1Length_Max_C1_WPF_RichTextBox_Documents_C1Length_C1_WPF_RichTextBox_Documents_C1Length_">Max(C1Length, C1Length)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the larger of two C1Length instances.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_Documents_C1Length_Min_C1_WPF_RichTextBox_Documents_C1Length_C1_WPF_RichTextBox_Documents_C1Length_" data-uid="C1.WPF.RichTextBox.Documents.C1Length.Min(C1.WPF.RichTextBox.Documents.C1Length,C1.WPF.RichTextBox.Documents.C1Length)">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Length.Min.html#C1_WPF_RichTextBox_Documents_C1Length_Min_C1_WPF_RichTextBox_Documents_C1Length_C1_WPF_RichTextBox_Documents_C1Length_">Min(C1Length, C1Length)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the smaller of two C1Length instances.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_Documents_C1Length_ToString" data-uid="C1.WPF.RichTextBox.Documents.C1Length.ToString">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Length.ToString.html#C1_WPF_RichTextBox_Documents_C1Length_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</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_C1Length_op_Equality_C1_WPF_RichTextBox_Documents_C1Length_C1_WPF_RichTextBox_Documents_C1Length_" data-uid="C1.WPF.RichTextBox.Documents.C1Length.op_Equality(C1.WPF.RichTextBox.Documents.C1Length,C1.WPF.RichTextBox.Documents.C1Length)">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Length.op_Equality.html#C1_WPF_RichTextBox_Documents_C1Length_op_Equality_C1_WPF_RichTextBox_Documents_C1Length_C1_WPF_RichTextBox_Documents_C1Length_">operator ==(C1Length, C1Length)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_Documents_C1Length_op_Inequality_C1_WPF_RichTextBox_Documents_C1Length_C1_WPF_RichTextBox_Documents_C1Length_" data-uid="C1.WPF.RichTextBox.Documents.C1Length.op_Inequality(C1.WPF.RichTextBox.Documents.C1Length,C1.WPF.RichTextBox.Documents.C1Length)">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Length.op_Inequality.html#C1_WPF_RichTextBox_Documents_C1Length_op_Inequality_C1_WPF_RichTextBox_Documents_C1Length_C1_WPF_RichTextBox_Documents_C1Length_">operator !=(C1Length, C1Length)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
