GrapeCity SPREAD for Windows Forms 11.0J
HitTest メソッド (FpSpread)


ポイントの x 座標。
ポイントの y 座標。
ヒット テストを実行します。
構文
'Declaration
 
Public Function HitTest( _
   ByVal x As Integer, _
   ByVal y As Integer _
) As HitTestInformation
'使用法
 
Dim instance As FpSpread
Dim x As Integer
Dim y As Integer
Dim value As HitTestInformation
 
value = instance.HitTest(x, y)
public HitTestInformation HitTest( 
   int x,
   int y
)

パラメータ

x
ポイントの x 座標。
y
ポイントの y 座標。

戻り値の型

スプレッドシートのさまざまな位置に関する関連情報を含む HitTestInformation オブジェクト
次のサンプルコードは、HitTestメソッドを使用します。
private void fpSpread1_CellClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
        {
            FarPoint.Win.Spread.HitTestInformation hti = new FarPoint.Win.Spread.HitTestInformation();
            hti = fpSpread1.HitTest(e.X, e.Y);
            listBox1.Items.Add(hti.Type);
        }
Private Sub FpSpread1_CellClick(sender As Object, e As FarPoint.Win.Spread.CellClickEventArgs) Handles FpSpread1.CellClick
        Dim hti As FarPoint.Win.Spread.HitTestInformation
        hti = FpSpread1.HitTest(e.X, e.Y)
        ListBox1.Items.Add(hti.Type)
    End Sub
参照

FpSpread クラス
FpSpread メンバ

開発者ガイド

編集、選択、フォーカスに関するイベント
ヒットテストによるカーソル位置の特定

 

 


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