# C1.C1Preview.ZoomSliderScale

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_ZoomSliderScale" data-uid="C1.C1Preview.ZoomSliderScale" class="text-break">ZoomSliderScale Class
</h1>
  <div class="markdown level0 summary"><p>A helper class that allows to use a slider control for a zoom factor value,
placing zoom factor 1 (no zoom) in the middle of the slider 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"><span class="xref">ZoomSliderScale</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.C1Preview.html">C1.C1Preview</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.PrintDocument.4.6.2.dll</h6>
  <h5 id="C1_C1Preview_ZoomSliderScale_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ZoomSliderScale</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ZoomSliderScale</code></pre>
  </div>
  <h5 id="C1_C1Preview_ZoomSliderScale_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>Consider a 2cm long slider used to set zoom values in the range from 0.1 to 10
(i.e. from 10% to 1000%).
Using <a class="xref" href="C1.C1Preview.ZoomSliderScale.html">ZoomSliderScale</a>, the first centimeter of the slider
will correspond to zoom values from 10% to 100%, and the second centimeter
will correspond to zoom values from 100% to 1000%.
On the other hand if a simple linear slider were used,
all zoom values between 10% and 100% would have been squeezed into the
first two millimeters of the slider, making it very hard to set those values.</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_C1Preview_ZoomSliderScale__ctor_System_Double_System_Double_System_Int32_System_Int32_" data-uid="C1.C1Preview.ZoomSliderScale.#ctor(System.Double,System.Double,System.Int32,System.Int32)">
          <a class="xref" href="C1.C1Preview.ZoomSliderScale.-ctor.html#C1_C1Preview_ZoomSliderScale__ctor_System_Double_System_Double_System_Int32_System_Int32_">ZoomSliderScale(double, double, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.ZoomSliderScale.html">ZoomSliderScale</a> class.</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_C1Preview_ZoomSliderScale_SliderValue_System_Double_" data-uid="C1.C1Preview.ZoomSliderScale.SliderValue(System.Double)">
          <a class="xref" href="C1.C1Preview.ZoomSliderScale.SliderValue.html#C1_C1Preview_ZoomSliderScale_SliderValue_System_Double_">SliderValue(double)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts a zoom factor to the corresponding slider value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_ZoomSliderScale_ZoomFactor_System_Int32_" data-uid="C1.C1Preview.ZoomSliderScale.ZoomFactor(System.Int32)">
          <a class="xref" href="C1.C1Preview.ZoomSliderScale.ZoomFactor.html#C1_C1Preview_ZoomSliderScale_ZoomFactor_System_Int32_">ZoomFactor(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts a slider value to the corresponding zoom factor.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
