Spread Windows Forms 6.0 Product Documentation
IsPointInKnob Method
See Also  Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > FpSlider Class : IsPointInKnob Method


x
X-coordinate of point
y
Y-coordinate of point
r
Image rectangle
value
Value
orientation
Orientation of slider
minimum
Minimum value
maximum
Maximum value
knobWidth
Width of slider knob
trackWidth
Width of slider track
tickLength
Width of slider ticks

Glossary Item Box

Determines whether the point is in the knob of the slider.

Syntax

Visual Basic (Declaration) 
Public Shared Function IsPointInKnob( _
   ByVal x As Integer, _
   ByVal y As Integer, _
   ByVal r As Rectangle, _
   ByVal value As Integer, _
   ByVal orientation As SliderOrientation, _
   ByVal minimum As Integer, _
   ByVal maximum As Integer, _
   ByVal knobWidth As Integer, _
   ByVal trackWidth As Integer, _
   ByVal tickLength As Integer _
) As Boolean
Visual Basic (Usage)Copy Code
Dim x As Integer
Dim y As Integer
Dim r As Rectangle
Dim value As Integer
Dim orientation As SliderOrientation
Dim minimum As Integer
Dim maximum As Integer
Dim knobWidth As Integer
Dim trackWidth As Integer
Dim tickLength As Integer
Dim value As Boolean
 
value = FpSlider.IsPointInKnob(x, y, r, value, orientation, minimum, maximum, knobWidth, trackWidth, tickLength)
C# 
public static bool IsPointInKnob( 
   int x,
   int y,
   Rectangle r,
   int value,
   SliderOrientation orientation,
   int minimum,
   int maximum,
   int knobWidth,
   int trackWidth,
   int tickLength
)

Parameters

x
X-coordinate of point
y
Y-coordinate of point
r
Image rectangle
value
Value
orientation
Orientation of slider
minimum
Minimum value
maximum
Maximum value
knobWidth
Width of slider knob
trackWidth
Width of slider track
tickLength
Width of slider ticks

Return Value

true if the point is in the slider knob; false otherwise

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.