# FarPoint.Win.FpSlider.IsPointInKnob

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_FpSlider_IsPointInKnob_" data-uid="FarPoint.Win.FpSlider.IsPointInKnob*">IsPointInKnob Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_FpSlider_IsPointInKnob_" data-uid="FarPoint.Win.FpSlider.IsPointInKnob*"></a>
<h4 id="FarPoint_Win_FpSlider_IsPointInKnob_System_Int32_System_Int32_System_Drawing_Rectangle_System_Int32_FarPoint_Win_SliderOrientation_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="FarPoint.Win.FpSlider.IsPointInKnob(System.Int32,System.Int32,System.Drawing.Rectangle,System.Int32,FarPoint.Win.SliderOrientation,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">IsPointInKnob(int, int, Rectangle, int, SliderOrientation, int, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Determines whether the point is in the knob of the slider.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static bool IsPointInKnob(int x, int y, Rectangle r, int value, SliderOrientation orientation, int minimum, int maximum, int knobWidth, int trackWidth, int tickLength)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function IsPointInKnob(x As Integer, y As Integer, r As Rectangle, value As Integer, orientation As SliderOrientation, minimum As Integer, maximum As Integer, knobWidth As Integer, trackWidth As Integer, tickLength As Integer) As Boolean</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">x</span></td>
      <td><p>X-coordinate of point</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>Y-coordinate of point</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a></td>
      <td><span class="parametername">r</span></td>
      <td><p>Image rectangle</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>Value</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.SliderOrientation.html">SliderOrientation</a></td>
      <td><span class="parametername">orientation</span></td>
      <td><p>Orientation of 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</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</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">knobWidth</span></td>
      <td><p>Width of slider knob</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">trackWidth</span></td>
      <td><p>Width of slider track</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">tickLength</span></td>
      <td><p>Width of slider ticks</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.boolean">bool</a></td>
      <td><p>true if the point is in the knob of the slider;otherwise false</p>
</td>
    </tr>
  </tbody>
</table>
</div>
