# GrapeCity.ActiveReports.PageReportModel.Length.ToString

## Content

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



<h1 id="GrapeCity_ActiveReports_PageReportModel_Length_ToString_" data-uid="GrapeCity.ActiveReports.PageReportModel.Length.ToString*">ToString Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_PageReportModel_Length_ToString_" data-uid="GrapeCity.ActiveReports.PageReportModel.Length.ToString*"></a>
<h4 id="GrapeCity_ActiveReports_PageReportModel_Length_ToString" data-uid="GrapeCity.ActiveReports.PageReportModel.Length.ToString">ToString()</h4>
<div class="markdown level1 summary"><p>Converts the value of this instance to its equivalent string representation.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override string ToString()</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</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><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value indicating the current <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Length.html">Length</a> instance.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.valuetype.tostring">ValueType.ToString()</a></div>
<h5 id="GrapeCity_ActiveReports_PageReportModel_Length_ToString_examples">Examples</h5>
<pre><code class="lang-csharp">var length = new Length("1in");
string result = length.ToString(); // "1in"</code></pre>



<a id="GrapeCity_ActiveReports_PageReportModel_Length_ToString_" data-uid="GrapeCity.ActiveReports.PageReportModel.Length.ToString*"></a>
<h4 id="GrapeCity_ActiveReports_PageReportModel_Length_ToString_System_IFormatProvider_" data-uid="GrapeCity.ActiveReports.PageReportModel.Length.ToString(System.IFormatProvider)">ToString(IFormatProvider)</h4>
<div class="markdown level1 summary"><p>Converts the value of this instance to its equivalent string representation using the specified format.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string ToString(IFormatProvider provider)</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.iformatprovider">IFormatProvider</a></td>
      <td><span class="parametername">provider</span></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iformatprovider">IFormatProvider</a> object supplying the culture-specific formatting information.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</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><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value indicating the current <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Length.html">Length</a> instance.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_PageReportModel_Length_ToString_System_IFormatProvider__examples">Examples</h5>
<pre><code class="lang-csharp">var length = new Length("1in");
string result = length.ToString(CultureInfo.InvariantCulture); // "1in"</code></pre>

</div>
