# C1.WPF.RichTextBox.Documents.C1Length.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_RichTextBox_Documents_C1Length__ctor_" data-uid="C1.WPF.RichTextBox.Documents.C1Length.#ctor*">C1Length Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_RichTextBox_Documents_C1Length__ctor_" data-uid="C1.WPF.RichTextBox.Documents.C1Length.#ctor*"></a>
<h4 id="C1_WPF_RichTextBox_Documents_C1Length__ctor_System_Double_" data-uid="C1.WPF.RichTextBox.Documents.C1Length.#ctor(System.Double)">C1Length(double)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1Length(double pixels)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(pixels As Double)</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="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">pixels</span></td>
      <td><p>Number of pixels.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_RichTextBox_Documents_C1Length__ctor_" data-uid="C1.WPF.RichTextBox.Documents.C1Length.#ctor*"></a>
<h4 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)">C1Length(double, C1LengthUnitType)</h4>
<div class="markdown level1 summary"><p>Initializes a new <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Length.html">C1Length</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1Length(double value, C1LengthUnitType type)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(value As Double, type As C1LengthUnitType)</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="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>Length value.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.RichTextBox.Documents.C1LengthUnitType.html">C1LengthUnitType</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>Length type.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
