[]
Determines whether the point is in the knob of the slider.
public static bool IsPointInKnob(int x, int y, Rectangle r, int value, SliderOrientation orientation, int minimum, int maximum, int knobWidth, int trackWidth, int tickLength)
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
Type | Name | Description |
---|---|---|
int | x | X-coordinate of point |
int | y | Y-coordinate of point |
Rectangle | r | Image rectangle |
int | value | Value |
SliderOrientation | orientation | Orientation of slider |
int | minimum | Minimum value |
int | maximum | Maximum value |
int | knobWidth | Width of slider knob |
int | trackWidth | Width of slider track |
int | tickLength | Width of slider ticks |
Type | Description |
---|---|
bool | true if the point is in the knob of the slider;otherwise false |