GrapeCity SPREAD for Windows Forms 11.0J
IsPointInKnob メソッド


ポイントのX座標
ポイントのY座標
画像矩形
スライダの向き
最小値
最大値
スライダのつまみの幅
スライダのトラックの幅
スライダーの目盛の幅
ポイントがスライダーのノブの中にあるかどうかを判定します。
構文
'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
'使用法
 
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)

パラメータ

x
ポイントのX座標
y
ポイントのY座標
r
画像矩形
value
orientation
スライダの向き
minimum
最小値
maximum
最大値
knobWidth
スライダのつまみの幅
trackWidth
スライダのトラックの幅
tickLength
スライダーの目盛の幅

戻り値の型

ポイントがスライダのつまみ内にある場合はTrue、それ以外の場合はFalse
参照

FpSlider クラス
FpSlider メンバ

 

 


© 2004-2018, GrapeCity Inc. All rights reserved.