# C1.C1Preview.C1PrintDocument.FromRU

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_C1PrintDocument_FromRU_" data-uid="C1.C1Preview.C1PrintDocument.FromRU*">FromRU Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_C1PrintDocument_FromRU_" data-uid="C1.C1Preview.C1PrintDocument.FromRU*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_FromRU_System_Double_C1_C1Preview_UnitTypeEnum_System_Single_" data-uid="C1.C1Preview.C1PrintDocument.FromRU(System.Double,C1.C1Preview.UnitTypeEnum,System.Single)">FromRU(double, UnitTypeEnum, float)</h4>
<div class="markdown level1 summary"><p>Converts a <b>double</b> value expressed in the current document's <a class="xref" href="C1.C1Preview.C1PrintDocument.ResolvedUnit.html#C1_C1Preview_C1PrintDocument_ResolvedUnit">ResolvedUnit</a> units
to other <a class="xref" href="C1.C1Preview.UnitTypeEnum.html">UnitTypeEnum</a> units.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public double FromRU(double value, UnitTypeEnum destType, float destDpi)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function FromRU(value As Double, destType As UnitTypeEnum, destDpi As Single) 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">value</span></td>
      <td><p>The value to convert, expressed in <a class="xref" href="C1.C1Preview.C1PrintDocument.ResolvedUnit.html#C1_C1Preview_C1PrintDocument_ResolvedUnit">ResolvedUnit</a> units.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.UnitTypeEnum.html">UnitTypeEnum</a></td>
      <td><span class="parametername">destType</span></td>
      <td><p>The destination <a class="xref" href="C1.C1Preview.UnitTypeEnum.html">UnitTypeEnum</a> units to convert to.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">destDpi</span></td>
      <td><p>The destination resolution (DPI), required only if <code class="paramref">destType</code> is <a class="xref" href="C1.C1Preview.UnitTypeEnum.html#C1_C1Preview_UnitTypeEnum_Pixel">Pixel</a>.</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.double">double</a></td>
      <td><p>The converted value.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1PrintDocument_FromRU_" data-uid="C1.C1Preview.C1PrintDocument.FromRU*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_FromRU_C1_C1Preview_RectangleD_C1_C1Preview_UnitTypeEnum_System_Single_System_Single_" data-uid="C1.C1Preview.C1PrintDocument.FromRU(C1.C1Preview.RectangleD,C1.C1Preview.UnitTypeEnum,System.Single,System.Single)">FromRU(RectangleD, UnitTypeEnum, float, float)</h4>
<div class="markdown level1 summary"><p>Converts a <a class="xref" href="C1.C1Preview.RectangleD.html">RectangleD</a> value expressed in the current document's <a class="xref" href="C1.C1Preview.C1PrintDocument.ResolvedUnit.html#C1_C1Preview_C1PrintDocument_ResolvedUnit">ResolvedUnit</a> units
to other <a class="xref" href="C1.C1Preview.UnitTypeEnum.html">UnitTypeEnum</a> units.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RectangleD FromRU(RectangleD value, UnitTypeEnum destType, float destDpiX, float destDpiY)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function FromRU(value As RectangleD, destType As UnitTypeEnum, destDpiX As Single, destDpiY As Single) As RectangleD</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="C1.C1Preview.RectangleD.html">RectangleD</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The value to convert, expressed in <a class="xref" href="C1.C1Preview.C1PrintDocument.ResolvedUnit.html#C1_C1Preview_C1PrintDocument_ResolvedUnit">ResolvedUnit</a> units.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.UnitTypeEnum.html">UnitTypeEnum</a></td>
      <td><span class="parametername">destType</span></td>
      <td><p>The destination <a class="xref" href="C1.C1Preview.UnitTypeEnum.html">UnitTypeEnum</a> units to convert to.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">destDpiX</span></td>
      <td><p>The horizontal destination resolution (DPI), required only if <code class="paramref">destType</code> is <a class="xref" href="C1.C1Preview.UnitTypeEnum.html#C1_C1Preview_UnitTypeEnum_Pixel">Pixel</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">destDpiY</span></td>
      <td><p>The vertical destination resolution (DPI), required only if <code class="paramref">destType</code> is <a class="xref" href="C1.C1Preview.UnitTypeEnum.html#C1_C1Preview_UnitTypeEnum_Pixel">Pixel</a>.</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="C1.C1Preview.RectangleD.html">RectangleD</a></td>
      <td><p>A <a class="xref" href="C1.C1Preview.RectangleD.html">RectangleD</a> structure converted to target units.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1PrintDocument_FromRU_" data-uid="C1.C1Preview.C1PrintDocument.FromRU*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_FromRU_System_Drawing_Region_C1_C1Preview_UnitTypeEnum_System_Single_System_Single_" data-uid="C1.C1Preview.C1PrintDocument.FromRU(System.Drawing.Region,C1.C1Preview.UnitTypeEnum,System.Single,System.Single)">FromRU(Region, UnitTypeEnum, float, float)</h4>
<div class="markdown level1 summary"><p>Transforms (scales) a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.region">Region</a> object expressed in the current document's <a class="xref" href="C1.C1Preview.C1PrintDocument.ResolvedUnit.html#C1_C1Preview_C1PrintDocument_ResolvedUnit">ResolvedUnit</a> units
so that it uses other <a class="xref" href="C1.C1Preview.UnitTypeEnum.html">UnitTypeEnum</a> units.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void FromRU(Region region, UnitTypeEnum destType, float destDpiX, float destDpiY)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub FromRU(region As Region, destType As UnitTypeEnum, destDpiX As Single, destDpiY As Single)</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.drawing.region">Region</a></td>
      <td><span class="parametername">region</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.region">Region</a> to scale.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.UnitTypeEnum.html">UnitTypeEnum</a></td>
      <td><span class="parametername">destType</span></td>
      <td><p>The destination units to use.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">destDpiX</span></td>
      <td><p>The horizontal destination resolution (DPI), required only if <code class="paramref">destType</code> is <a class="xref" href="C1.C1Preview.UnitTypeEnum.html#C1_C1Preview_UnitTypeEnum_Pixel">Pixel</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">destDpiY</span></td>
      <td><p>The vertical destination resolution (DPI), required only if <code class="paramref">destType</code> is <a class="xref" href="C1.C1Preview.UnitTypeEnum.html#C1_C1Preview_UnitTypeEnum_Pixel">Pixel</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1PrintDocument_FromRU_" data-uid="C1.C1Preview.C1PrintDocument.FromRU*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_FromRU_C1_C1Preview_OffsetsD_C1_C1Preview_UnitTypeEnum_System_Single_System_Single_" data-uid="C1.C1Preview.C1PrintDocument.FromRU(C1.C1Preview.OffsetsD,C1.C1Preview.UnitTypeEnum,System.Single,System.Single)">FromRU(OffsetsD, UnitTypeEnum, float, float)</h4>
<div class="markdown level1 summary"><p>Converts a <a class="xref" href="C1.C1Preview.OffsetsD.html">OffsetsD</a> value expressed in the current document's <a class="xref" href="C1.C1Preview.C1PrintDocument.ResolvedUnit.html#C1_C1Preview_C1PrintDocument_ResolvedUnit">ResolvedUnit</a> units
to other <a class="xref" href="C1.C1Preview.UnitTypeEnum.html">UnitTypeEnum</a> units.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public OffsetsD FromRU(OffsetsD value, UnitTypeEnum destType, float destDpiX, float destDpiY)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function FromRU(value As OffsetsD, destType As UnitTypeEnum, destDpiX As Single, destDpiY As Single) As OffsetsD</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="C1.C1Preview.OffsetsD.html">OffsetsD</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The value to convert, expressed in <a class="xref" href="C1.C1Preview.C1PrintDocument.ResolvedUnit.html#C1_C1Preview_C1PrintDocument_ResolvedUnit">ResolvedUnit</a> units.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.UnitTypeEnum.html">UnitTypeEnum</a></td>
      <td><span class="parametername">destType</span></td>
      <td><p>The destination <a class="xref" href="C1.C1Preview.UnitTypeEnum.html">UnitTypeEnum</a> units to convert to.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">destDpiX</span></td>
      <td><p>The horizontal destination resolution (DPI), required only if <code class="paramref">destType</code> is <a class="xref" href="C1.C1Preview.UnitTypeEnum.html#C1_C1Preview_UnitTypeEnum_Pixel">Pixel</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">destDpiY</span></td>
      <td><p>The vertical destination resolution (DPI), required only if <code class="paramref">destType</code> is <a class="xref" href="C1.C1Preview.UnitTypeEnum.html#C1_C1Preview_UnitTypeEnum_Pixel">Pixel</a>.</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="C1.C1Preview.OffsetsD.html">OffsetsD</a></td>
      <td><p>A <a class="xref" href="C1.C1Preview.OffsetsD.html">OffsetsD</a> structure converted to target units.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1PrintDocument_FromRU_" data-uid="C1.C1Preview.C1PrintDocument.FromRU*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_FromRU_System_Double_C1_C1Preview_UnitTypeEnum_" data-uid="C1.C1Preview.C1PrintDocument.FromRU(System.Double,C1.C1Preview.UnitTypeEnum)">FromRU(double, UnitTypeEnum)</h4>
<div class="markdown level1 summary"><p>Converts a <b>double</b> value expressed in the current document's <a class="xref" href="C1.C1Preview.C1PrintDocument.ResolvedUnit.html#C1_C1Preview_C1PrintDocument_ResolvedUnit">ResolvedUnit</a> units
to other <a class="xref" href="C1.C1Preview.UnitTypeEnum.html">UnitTypeEnum</a> units,
using <a class="xref" href="C1.C1Preview.C1PrintDocument.CreationDpi.html#C1_C1Preview_C1PrintDocument_CreationDpi">CreationDpi</a> resolution if <code class="paramref">destType</code> is <a class="xref" href="C1.C1Preview.UnitTypeEnum.html#C1_C1Preview_UnitTypeEnum_Pixel">Pixel</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public double FromRU(double value, UnitTypeEnum destType)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function FromRU(value As Double, destType As UnitTypeEnum) 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">value</span></td>
      <td><p>The value to convert, expressed in <a class="xref" href="C1.C1Preview.C1PrintDocument.ResolvedUnit.html#C1_C1Preview_C1PrintDocument_ResolvedUnit">ResolvedUnit</a> units.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.UnitTypeEnum.html">UnitTypeEnum</a></td>
      <td><span class="parametername">destType</span></td>
      <td><p>The destination <a class="xref" href="C1.C1Preview.UnitTypeEnum.html">UnitTypeEnum</a> units to convert to.</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.double">double</a></td>
      <td><p>The value converted to <code class="paramref">destType</code> units.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1PrintDocument_FromRU_" data-uid="C1.C1Preview.C1PrintDocument.FromRU*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_FromRU_C1_C1Preview_RectangleD_C1_C1Preview_UnitTypeEnum_" data-uid="C1.C1Preview.C1PrintDocument.FromRU(C1.C1Preview.RectangleD,C1.C1Preview.UnitTypeEnum)">FromRU(RectangleD, UnitTypeEnum)</h4>
<div class="markdown level1 summary"><p>Converts a <a class="xref" href="C1.C1Preview.RectangleD.html">RectangleD</a> value expressed in the current document's <a class="xref" href="C1.C1Preview.C1PrintDocument.ResolvedUnit.html#C1_C1Preview_C1PrintDocument_ResolvedUnit">ResolvedUnit</a> units
to other <a class="xref" href="C1.C1Preview.UnitTypeEnum.html">UnitTypeEnum</a> units,
using <a class="xref" href="C1.C1Preview.C1PrintDocument.CreationDpi.html#C1_C1Preview_C1PrintDocument_CreationDpi">CreationDpi</a> resolution if <code class="paramref">destType</code> is <a class="xref" href="C1.C1Preview.UnitTypeEnum.html#C1_C1Preview_UnitTypeEnum_Pixel">Pixel</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RectangleD FromRU(RectangleD value, UnitTypeEnum destType)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function FromRU(value As RectangleD, destType As UnitTypeEnum) As RectangleD</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="C1.C1Preview.RectangleD.html">RectangleD</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The value to convert, expressed in <a class="xref" href="C1.C1Preview.C1PrintDocument.ResolvedUnit.html#C1_C1Preview_C1PrintDocument_ResolvedUnit">ResolvedUnit</a> units.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.UnitTypeEnum.html">UnitTypeEnum</a></td>
      <td><span class="parametername">destType</span></td>
      <td><p>The destination <a class="xref" href="C1.C1Preview.UnitTypeEnum.html">UnitTypeEnum</a> units to convert to.</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="C1.C1Preview.RectangleD.html">RectangleD</a></td>
      <td><p>A <a class="xref" href="C1.C1Preview.RectangleD.html">RectangleD</a> structure converted to target units.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1PrintDocument_FromRU_" data-uid="C1.C1Preview.C1PrintDocument.FromRU*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_FromRU_C1_C1Preview_OffsetsD_C1_C1Preview_UnitTypeEnum_" data-uid="C1.C1Preview.C1PrintDocument.FromRU(C1.C1Preview.OffsetsD,C1.C1Preview.UnitTypeEnum)">FromRU(OffsetsD, UnitTypeEnum)</h4>
<div class="markdown level1 summary"><p>Converts a <a class="xref" href="C1.C1Preview.OffsetsD.html">OffsetsD</a> value expressed in the current document's <a class="xref" href="C1.C1Preview.C1PrintDocument.ResolvedUnit.html#C1_C1Preview_C1PrintDocument_ResolvedUnit">ResolvedUnit</a> units
to other <a class="xref" href="C1.C1Preview.UnitTypeEnum.html">UnitTypeEnum</a> units,
using <a class="xref" href="C1.C1Preview.C1PrintDocument.CreationDpi.html#C1_C1Preview_C1PrintDocument_CreationDpi">CreationDpi</a> resolution if <code class="paramref">destType</code> is <a class="xref" href="C1.C1Preview.UnitTypeEnum.html#C1_C1Preview_UnitTypeEnum_Pixel">Pixel</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public OffsetsD FromRU(OffsetsD value, UnitTypeEnum destType)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function FromRU(value As OffsetsD, destType As UnitTypeEnum) As OffsetsD</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="C1.C1Preview.OffsetsD.html">OffsetsD</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The value to convert, expressed in <a class="xref" href="C1.C1Preview.C1PrintDocument.ResolvedUnit.html#C1_C1Preview_C1PrintDocument_ResolvedUnit">ResolvedUnit</a> units.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.UnitTypeEnum.html">UnitTypeEnum</a></td>
      <td><span class="parametername">destType</span></td>
      <td><p>The destination <a class="xref" href="C1.C1Preview.UnitTypeEnum.html">UnitTypeEnum</a> units to convert to.</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="C1.C1Preview.OffsetsD.html">OffsetsD</a></td>
      <td><p>A <a class="xref" href="C1.C1Preview.OffsetsD.html">OffsetsD</a> structure converted to target units.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1PrintDocument_FromRU_" data-uid="C1.C1Preview.C1PrintDocument.FromRU*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_FromRU_C1_C1Preview_PointD_C1_C1Preview_UnitTypeEnum_System_Single_System_Single_" data-uid="C1.C1Preview.C1PrintDocument.FromRU(C1.C1Preview.PointD,C1.C1Preview.UnitTypeEnum,System.Single,System.Single)">FromRU(PointD, UnitTypeEnum, float, float)</h4>
<div class="markdown level1 summary"><p>Converts a <a class="xref" href="C1.C1Preview.PointD.html">PointD</a> value expressed in the current document's <a class="xref" href="C1.C1Preview.C1PrintDocument.ResolvedUnit.html#C1_C1Preview_C1PrintDocument_ResolvedUnit">ResolvedUnit</a> units
to other <a class="xref" href="C1.C1Preview.UnitTypeEnum.html">UnitTypeEnum</a> units.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PointD FromRU(PointD value, UnitTypeEnum destType, float destDpiX, float destDpiY)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function FromRU(value As PointD, destType As UnitTypeEnum, destDpiX As Single, destDpiY As Single) As PointD</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="C1.C1Preview.PointD.html">PointD</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The value to convert, expressed in <a class="xref" href="C1.C1Preview.C1PrintDocument.ResolvedUnit.html#C1_C1Preview_C1PrintDocument_ResolvedUnit">ResolvedUnit</a> units.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.UnitTypeEnum.html">UnitTypeEnum</a></td>
      <td><span class="parametername">destType</span></td>
      <td><p>The destination <a class="xref" href="C1.C1Preview.UnitTypeEnum.html">UnitTypeEnum</a> units to convert to.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">destDpiX</span></td>
      <td><p>The horizontal destination resolution (DPI), required only if <code class="paramref">destType</code> is <a class="xref" href="C1.C1Preview.UnitTypeEnum.html#C1_C1Preview_UnitTypeEnum_Pixel">Pixel</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">destDpiY</span></td>
      <td><p>The vertical destination resolution (DPI), required only if <code class="paramref">destType</code> is <a class="xref" href="C1.C1Preview.UnitTypeEnum.html#C1_C1Preview_UnitTypeEnum_Pixel">Pixel</a>.</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="C1.C1Preview.PointD.html">PointD</a></td>
      <td><p>A <a class="xref" href="C1.C1Preview.PointD.html">PointD</a> structure converted to target units.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1PrintDocument_FromRU_" data-uid="C1.C1Preview.C1PrintDocument.FromRU*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_FromRU_System_Double_System_Single_System_Boolean_" data-uid="C1.C1Preview.C1PrintDocument.FromRU(System.Double,System.Single,System.Boolean)">FromRU(double, float, bool)</h4>
<div class="markdown level1 summary"><p>Converts a <b>double</b> value expressed in the current document's <a class="xref" href="C1.C1Preview.C1PrintDocument.ResolvedUnit.html#C1_C1Preview_C1PrintDocument_ResolvedUnit">ResolvedUnit</a> units
to <a class="xref" href="C1.C1Preview.UnitTypeEnum.html#C1_C1Preview_UnitTypeEnum_Pixel">Pixel</a> units with resolution specified by <code class="paramref">destDpi</code>.</p>
<p>
Depending on the <code class="paramref">truncate</code> parameter, the converted value is either simply truncated,
or rounded (slower but more precise).
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int FromRU(double value, float destDpi, bool truncate)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function FromRU(value As Double, destDpi As Single, truncate As Boolean) As Integer</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>The value to convert, expressed in <a class="xref" href="C1.C1Preview.C1PrintDocument.ResolvedUnit.html#C1_C1Preview_C1PrintDocument_ResolvedUnit">ResolvedUnit</a> units.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">destDpi</span></td>
      <td><p>The destination resolution (DPI).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">truncate</span></td>
      <td><p><b>true</b> to truncate the converted value, <b>false</b> to round it (slower but more precise).</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.int32">int</a></td>
      <td><p>The converted value.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1PrintDocument_FromRU_" data-uid="C1.C1Preview.C1PrintDocument.FromRU*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_FromRU_C1_C1Preview_RectangleD_System_Single_System_Single_System_Boolean_" data-uid="C1.C1Preview.C1PrintDocument.FromRU(C1.C1Preview.RectangleD,System.Single,System.Single,System.Boolean)">FromRU(RectangleD, float, float, bool)</h4>
<div class="markdown level1 summary"><p>Converts a <a class="xref" href="C1.C1Preview.RectangleD.html">RectangleD</a> value expressed in the current document's <a class="xref" href="C1.C1Preview.C1PrintDocument.ResolvedUnit.html#C1_C1Preview_C1PrintDocument_ResolvedUnit">ResolvedUnit</a> units
to a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a> structure expressed in <a class="xref" href="C1.C1Preview.UnitTypeEnum.html#C1_C1Preview_UnitTypeEnum_Pixel">Pixel</a> units,
using the specified resolution.</p>
<p>
Depending on the <code class="paramref">truncate</code> parameter, the converted value is either simply truncated,
or rounded (slower but more precise).
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Rectangle FromRU(RectangleD value, float destDpiX, float destDpiY, bool truncate)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function FromRU(value As RectangleD, destDpiX As Single, destDpiY As Single, truncate As Boolean) As Rectangle</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="C1.C1Preview.RectangleD.html">RectangleD</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The value to convert, expressed in <a class="xref" href="C1.C1Preview.C1PrintDocument.ResolvedUnit.html#C1_C1Preview_C1PrintDocument_ResolvedUnit">ResolvedUnit</a> units.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">destDpiX</span></td>
      <td><p>The horizontal destination resolution (DPI).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">destDpiY</span></td>
      <td><p>The vertical destination resolution (DPI).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">truncate</span></td>
      <td><p><b>true</b> to truncate the converted value, <b>false</b> to round it (slower but more precise).</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.drawing.rectangle">Rectangle</a></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a> structure converted to pixels.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_C1PrintDocument_FromRU_" data-uid="C1.C1Preview.C1PrintDocument.FromRU*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_FromRU_C1_C1Preview_OffsetsD_System_Single_System_Single_System_Boolean_" data-uid="C1.C1Preview.C1PrintDocument.FromRU(C1.C1Preview.OffsetsD,System.Single,System.Single,System.Boolean)">FromRU(OffsetsD, float, float, bool)</h4>
<div class="markdown level1 summary"><p>Converts a <a class="xref" href="C1.C1Preview.OffsetsD.html">OffsetsD</a> value expressed in the current document's <a class="xref" href="C1.C1Preview.C1PrintDocument.ResolvedUnit.html#C1_C1Preview_C1PrintDocument_ResolvedUnit">ResolvedUnit</a> units
to a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a> structure expressed in <a class="xref" href="C1.C1Preview.UnitTypeEnum.html#C1_C1Preview_UnitTypeEnum_Pixel">Pixel</a> units,
using the specified resolution.</p>
<p>
Depending on the <code class="paramref">truncate</code> parameter, the converted value is either simply truncated,
or rounded (slower but more precise).
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public OffsetsI FromRU(OffsetsD value, float destDpiX, float destDpiY, bool truncate)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function FromRU(value As OffsetsD, destDpiX As Single, destDpiY As Single, truncate As Boolean) As OffsetsI</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="C1.C1Preview.OffsetsD.html">OffsetsD</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The value to convert, expressed in <a class="xref" href="C1.C1Preview.C1PrintDocument.ResolvedUnit.html#C1_C1Preview_C1PrintDocument_ResolvedUnit">ResolvedUnit</a> units.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">destDpiX</span></td>
      <td><p>The horizontal destination resolution (DPI).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">destDpiY</span></td>
      <td><p>The vertical destination resolution (DPI).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">truncate</span></td>
      <td><p><b>true</b> to truncate the converted value, <b>false</b> to round it (slower but more precise).</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="C1.C1Preview.OffsetsI.html">OffsetsI</a></td>
      <td><p>A <a class="xref" href="C1.C1Preview.OffsetsI.html">OffsetsI</a> structure converted to pixels.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
