# C1.Win.TouchToolKit.PictureBoxZoomPolicy

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_TouchToolKit_PictureBoxZoomPolicy" data-uid="C1.Win.TouchToolKit.PictureBoxZoomPolicy" class="text-break">PictureBoxZoomPolicy Class
</h1>
  <div class="markdown level0 summary"><p>Represents a zoom policy for <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.picturebox">PictureBox</a> type control.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="C1.Win.TouchToolKit.ZoomPolicy.html">ZoomPolicy</a></div>
    <div class="level2"><a class="xref" href="C1.Win.TouchToolKit.ControlZoomPolicy.html">ControlZoomPolicy</a></div>
    <div class="level3"><span class="xref">PictureBoxZoomPolicy</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.TouchToolKit.html">C1.Win.TouchToolKit</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.TouchToolKit.4.8.dll</h6>
  <h5 id="C1_Win_TouchToolKit_PictureBoxZoomPolicy_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class PictureBoxZoomPolicy : ControlZoomPolicy</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class PictureBoxZoomPolicy
    Inherits ControlZoomPolicy</code></pre>
  </div>
  <h5 id="C1_Win_TouchToolKit_PictureBoxZoomPolicy_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>This zoom policy will change <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.picturebox.sizemode">SizeMode</a> as <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.pictureboxsizemode#system-windows-forms-pictureboxsizemode-zoom">Zoom</a> when ZoomFactor is greater than 1
if <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.picturebox.sizemode">SizeMode</a> is <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.pictureboxsizemode#system-windows-forms-pictureboxsizemode-autosize">AutoSize</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.pictureboxsizemode#system-windows-forms-pictureboxsizemode-centerimage">CenterImage</a> or <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.pictureboxsizemode#system-windows-forms-pictureboxsizemode-normal">Normal</a>.
And when ZoomFactor change as 1, the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.picturebox.sizemode">SizeMode</a> will change back.</p>
</div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_TouchToolKit_PictureBoxZoomPolicy__ctor" data-uid="C1.Win.TouchToolKit.PictureBoxZoomPolicy.#ctor">
          <a class="xref" href="C1.Win.TouchToolKit.PictureBoxZoomPolicy.-ctor.html#C1_Win_TouchToolKit_PictureBoxZoomPolicy__ctor">PictureBoxZoomPolicy()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_TouchToolKit_PictureBoxZoomPolicy_TargetType" data-uid="C1.Win.TouchToolKit.PictureBoxZoomPolicy.TargetType">
          <a class="xref" href="C1.Win.TouchToolKit.PictureBoxZoomPolicy.TargetType.html#C1_Win_TouchToolKit_PictureBoxZoomPolicy_TargetType">TargetType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the type indicates which control type can use this policy.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_TouchToolKit_PictureBoxZoomPolicy_Initialize_System_Windows_Forms_Control_" data-uid="C1.Win.TouchToolKit.PictureBoxZoomPolicy.Initialize(System.Windows.Forms.Control)">
          <a class="xref" href="C1.Win.TouchToolKit.PictureBoxZoomPolicy.Initialize.html#C1_Win_TouchToolKit_PictureBoxZoomPolicy_Initialize_System_Windows_Forms_Control_">Initialize(Control)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes the control before zoom action start.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_PictureBoxZoomPolicy_ZoomBounds_System_Windows_Forms_Control_C1_Win_TouchToolKit_ZoomBoundsInfo_" data-uid="C1.Win.TouchToolKit.PictureBoxZoomPolicy.ZoomBounds(System.Windows.Forms.Control,C1.Win.TouchToolKit.ZoomBoundsInfo)">
          <a class="xref" href="C1.Win.TouchToolKit.PictureBoxZoomPolicy.ZoomBounds.html#C1_Win_TouchToolKit_PictureBoxZoomPolicy_ZoomBounds_System_Windows_Forms_Control_C1_Win_TouchToolKit_ZoomBoundsInfo_">ZoomBounds(Control, ZoomBoundsInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Zoom the control bounds.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_TouchToolKit_PictureBoxZoomPolicy_ZoomFont_System_Windows_Forms_Control_C1_Win_TouchToolKit_ZoomFontInfo_" data-uid="C1.Win.TouchToolKit.PictureBoxZoomPolicy.ZoomFont(System.Windows.Forms.Control,C1.Win.TouchToolKit.ZoomFontInfo)">
          <a class="xref" href="C1.Win.TouchToolKit.PictureBoxZoomPolicy.ZoomFont.html#C1_Win_TouchToolKit_PictureBoxZoomPolicy_ZoomFont_System_Windows_Forms_Control_C1_Win_TouchToolKit_ZoomFontInfo_">ZoomFont(Control, ZoomFontInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Zoom the control font.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="seealso">See Also</h3>
  <div class="seealso">
      <div><a class="xref" href="C1.Win.TouchToolKit.ZoomPolicy.html">ZoomPolicy</a></div>
      <div><a class="xref" href="C1.Win.TouchToolKit.ControlZoomPolicy.html">ControlZoomPolicy</a></div>
  </div>

</div>
