# DDCssLib.CSSValue.GetLengthTwips

## Content

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



<h1 id="DDCssLib_CSSValue_GetLengthTwips_" data-uid="DDCssLib.CSSValue.GetLengthTwips*">GetLengthTwips Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="DDCssLib_CSSValue_GetLengthTwips_" data-uid="DDCssLib.CSSValue.GetLengthTwips*"></a>
<h4 id="DDCssLib_CSSValue_GetLengthTwips_System_Single_" data-uid="DDCssLib.CSSValue.GetLengthTwips(System.Single)">GetLengthTwips(float)</h4>
<div class="markdown level1 summary"><p>Returns a length value in twip units.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public float GetLengthTwips(float aTwipsPerPixel)</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.single">float</a></td>
      <td><span class="parametername">aTwipsPerPixel</span></td>
      <td><p>This value is necessary to convert a device independent length unit
(mm, cm, inch, etc...) from the device dependent unit pixels.
If the value was specified in a device independent unit, then this value will not be used.</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.single">float</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
