# GrapeCity.ActiveReports.PageReportModel.Length.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_PageReportModel_Length__ctor_" data-uid="GrapeCity.ActiveReports.PageReportModel.Length.#ctor*">Length Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_PageReportModel_Length__ctor_" data-uid="GrapeCity.ActiveReports.PageReportModel.Length.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_PageReportModel_Length__ctor_System_String_" data-uid="GrapeCity.ActiveReports.PageReportModel.Length.#ctor(System.String)">Length(string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Length.html">Length</a> struct using a specified string length.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Length(string length)</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.string">string</a></td>
      <td><span class="parametername">length</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value indicating the length, e.g., &quot;1 cm&quot;, &quot;10 pt&quot;.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_PageReportModel_Length__ctor_" data-uid="GrapeCity.ActiveReports.PageReportModel.Length.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_PageReportModel_Length__ctor_System_Double_GrapeCity_ActiveReports_PageReportModel_Length_Unit_" data-uid="GrapeCity.ActiveReports.PageReportModel.Length.#ctor(System.Double,GrapeCity.ActiveReports.PageReportModel.Length.Unit)">Length(double, Unit)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Length.html">Length</a> struct using a specified length and unit.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Length(double originalLength, Length.Unit originalUnit)</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">originalLength</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value indicating the numeric value of the length.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Length.html">Length</a>.<a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Length.Unit.html">Unit</a></td>
      <td><span class="parametername">originalUnit</span></td>
      <td><p>A <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Length.Unit.html">Length.Unit</a> of measurement for the length.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
