# FarPoint.Win.Spread.DrawingSpace.PSObject.SizeRegion

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_DrawingSpace_PSObject_SizeRegion_" data-uid="FarPoint.Win.Spread.DrawingSpace.PSObject.SizeRegion*">SizeRegion Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_DrawingSpace_PSObject_SizeRegion_" data-uid="FarPoint.Win.Spread.DrawingSpace.PSObject.SizeRegion*"></a>
<h4 id="FarPoint_Win_Spread_DrawingSpace_PSObject_SizeRegion_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="FarPoint.Win.Spread.DrawingSpace.PSObject.SizeRegion(System.Int32,System.Int32,System.Int32,System.Int32)">SizeRegion(int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Resizes the region.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual void SizeRegion(int newWidth, int newHeight, int oldWidth, int oldHeight)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Sub SizeRegion(newWidth As Integer, newHeight As Integer, oldWidth As Integer, oldHeight 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">newWidth</span></td>
      <td><p>New width value in pixels</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">newHeight</span></td>
      <td><p>New height value in pixels</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">oldWidth</span></td>
      <td><p>Old width value in pixels</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">oldHeight</span></td>
      <td><p>Old height value in pixels</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_DrawingSpace_PSObject_SizeRegion_" data-uid="FarPoint.Win.Spread.DrawingSpace.PSObject.SizeRegion*"></a>
<h4 id="FarPoint_Win_Spread_DrawingSpace_PSObject_SizeRegion_System_Single_System_Single_System_Single_System_Single_" data-uid="FarPoint.Win.Spread.DrawingSpace.PSObject.SizeRegion(System.Single,System.Single,System.Single,System.Single)">SizeRegion(float, float, float, float)</h4>
<div class="markdown level1 summary"><p>Resizes the region.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual void SizeRegion(float newWidth, float newHeight, float oldWidth, float oldHeight)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Sub SizeRegion(newWidth As Single, newHeight As Single, oldWidth As Single, oldHeight 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.single">float</a></td>
      <td><span class="parametername">newWidth</span></td>
      <td><p>New width value in pixels</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">newHeight</span></td>
      <td><p>New height value in pixels</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">oldWidth</span></td>
      <td><p>Old width value in pixels</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">oldHeight</span></td>
      <td><p>Old height value in pixels</p>
</td>
    </tr>
  </tbody>
</table>
</div>
