# C1.Win.TouchToolKit.ScrollableControlZoomPolicy.Initialize

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_TouchToolKit_ScrollableControlZoomPolicy_Initialize_" data-uid="C1.Win.TouchToolKit.ScrollableControlZoomPolicy.Initialize*">Initialize Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_TouchToolKit_ScrollableControlZoomPolicy_Initialize_" data-uid="C1.Win.TouchToolKit.ScrollableControlZoomPolicy.Initialize*"></a>
<h4 id="C1_Win_TouchToolKit_ScrollableControlZoomPolicy_Initialize_System_Windows_Forms_Control_" data-uid="C1.Win.TouchToolKit.ScrollableControlZoomPolicy.Initialize(System.Windows.Forms.Control)">Initialize(Control)</h4>
<div class="markdown level1 summary"><p>Initializes the control before zoom action start.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override void Initialize(Control control)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Sub Initialize(control As Control)</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.windows.forms.control">Control</a></td>
      <td><span class="parametername">control</span></td>
      <td><p>The specified control.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="C1.Win.TouchToolKit.ZoomPolicy.Initialize.html#C1_Win_TouchToolKit_ZoomPolicy_Initialize_System_Windows_Forms_Control_">ZoomPolicy.Initialize(Control)</a></div>
<h5 id="C1_Win_TouchToolKit_ScrollableControlZoomPolicy_Initialize_System_Windows_Forms_Control__remarks">Remarks</h5>
<div class="markdown level1 remarks">  <p>
This method will be called before all control zoom.
In some control, the bounds/font may change when parent control changed.
User can cache some original bound/font in this method before parent change.
And use the cached value in <a class="xref" href="C1.Win.TouchToolKit.ScrollableControlZoomPolicy.ZoomBounds.html#C1_Win_TouchToolKit_ScrollableControlZoomPolicy_ZoomBounds_System_Windows_Forms_Control_C1_Win_TouchToolKit_ZoomBoundsInfo_">ZoomBounds(Control, ZoomBoundsInfo)</a> and <a class="xref" href="C1.Win.TouchToolKit.ScrollableControlZoomPolicy.ZoomFont.html#C1_Win_TouchToolKit_ScrollableControlZoomPolicy_ZoomFont_System_Windows_Forms_Control_C1_Win_TouchToolKit_ZoomFontInfo_">ZoomFont(Control, ZoomFontInfo)</a> method.
  </p>
  <div class="NOTE"><h5>note</h5><p>
Not all control need to handle this method.
  </p></div>
</div>
</div>
