# C1.Framework.Element.ScaleToDeviceDPI

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_Element_ScaleToDeviceDPI_" data-uid="C1.Framework.Element.ScaleToDeviceDPI*">ScaleToDeviceDPI Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_Element_ScaleToDeviceDPI_" data-uid="C1.Framework.Element.ScaleToDeviceDPI*"></a>
<h4 id="C1_Framework_Element_ScaleToDeviceDPI_C1_Framework_Style_" data-uid="C1.Framework.Element.ScaleToDeviceDPI(C1.Framework.Style)">ScaleToDeviceDPI(Style)</h4>
<div class="markdown level1 summary"><p>Scales the <a class="xref" href="C1.Framework.Style.html">Style</a> instance uses the DeviceDpi value if this element has a <a class="xref" href="C1.Framework.Element.HostControl.html#C1_Framework_Element_HostControl">HostControl</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected void ScaleToDeviceDPI(Style value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub ScaleToDeviceDPI(value As Style)</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.Framework.Style.html">Style</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The style for scaling.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Framework_Element_ScaleToDeviceDPI_C1_Framework_Style__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method doen't scale the Font property.</p>
</div>


<a id="C1_Framework_Element_ScaleToDeviceDPI_" data-uid="C1.Framework.Element.ScaleToDeviceDPI*"></a>
<h4 id="C1_Framework_Element_ScaleToDeviceDPI_System_Int32_" data-uid="C1.Framework.Element.ScaleToDeviceDPI(System.Int32)">ScaleToDeviceDPI(int)</h4>
<div class="markdown level1 summary"><p>Scales a value uses the DeviceDpi value if this element has a <a class="xref" href="C1.Framework.Element.HostControl.html#C1_Framework_Element_HostControl">HostControl</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected int ScaleToDeviceDPI(int value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function ScaleToDeviceDPI(value As Integer) 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.int32">int</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The value for scaling.</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 scaled value.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_Element_ScaleToDeviceDPI_" data-uid="C1.Framework.Element.ScaleToDeviceDPI*"></a>
<h4 id="C1_Framework_Element_ScaleToDeviceDPI_System_Drawing_Size_" data-uid="C1.Framework.Element.ScaleToDeviceDPI(System.Drawing.Size)">ScaleToDeviceDPI(Size)</h4>
<div class="markdown level1 summary"><p>Scales a value uses the DeviceDpi value if this element has a <a class="xref" href="C1.Framework.Element.HostControl.html#C1_Framework_Element_HostControl">HostControl</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected Size ScaleToDeviceDPI(Size value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function ScaleToDeviceDPI(value As Size) As Size</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.size">Size</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The value for scaling.</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.size">Size</a></td>
      <td><p>The scaled value.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Framework_Element_ScaleToDeviceDPI_" data-uid="C1.Framework.Element.ScaleToDeviceDPI*"></a>
<h4 id="C1_Framework_Element_ScaleToDeviceDPI_C1_Framework_Thickness_" data-uid="C1.Framework.Element.ScaleToDeviceDPI(C1.Framework.Thickness)">ScaleToDeviceDPI(Thickness)</h4>
<div class="markdown level1 summary"><p>Scales a value uses the DeviceDpi value if this element has a <a class="xref" href="C1.Framework.Element.HostControl.html#C1_Framework_Element_HostControl">HostControl</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected Thickness ScaleToDeviceDPI(Thickness value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function ScaleToDeviceDPI(value As Thickness) As Thickness</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.Framework.Thickness.html">Thickness</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The value for scaling.</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.Framework.Thickness.html">Thickness</a></td>
      <td><p>The scaled value.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
