# FarPoint.Win.FpSlider.GetPreferredSize

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_FpSlider_GetPreferredSize_" data-uid="FarPoint.Win.FpSlider.GetPreferredSize*">GetPreferredSize Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_FpSlider_GetPreferredSize_" data-uid="FarPoint.Win.FpSlider.GetPreferredSize*"></a>
<h4 id="FarPoint_Win_FpSlider_GetPreferredSize_FarPoint_Win_SliderOrientation_System_Int32_System_Int32_System_Int32_" data-uid="FarPoint.Win.FpSlider.GetPreferredSize(FarPoint.Win.SliderOrientation,System.Int32,System.Int32,System.Int32)">GetPreferredSize(SliderOrientation, int, int, int)</h4>
<div class="markdown level1 summary"><p>Gets the size needed to display the entire slider with the specified orientation and values.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Size GetPreferredSize(SliderOrientation orientation, int minimum, int maximum, int tickSpacing)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function GetPreferredSize(orientation As SliderOrientation, minimum As Integer, maximum As Integer, tickSpacing As Integer) 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="FarPoint.Win.SliderOrientation.html">SliderOrientation</a></td>
      <td><span class="parametername">orientation</span></td>
      <td><p>Orientation of the slider</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">minimum</span></td>
      <td><p>Minimum value of the slider</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">maximum</span></td>
      <td><p>Maximum value of the slider</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">tickSpacing</span></td>
      <td><p>Space between tick marks</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>An ordered pair of type Size representing the width and height.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
