PowerTools SPREAD for Windows Forms 8.0J
Y プロパティ (CellClickEventArgs)


ポインタ位置のY座標を取得します。
構文
'Declaration
 
Public ReadOnly Property Y As Integer
'使用法
 
Dim instance As CellClickEventArgs
Dim value As Integer
 
value = instance.Y
public int Y {get;}

プロパティ値

マウス位置の Y 座標を表す Integer
次のサンプルコードは、CellClickイベントを使用します。
private void fpSpread1CellClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
{
         Point p = new Point(e.X, e.Y);
         MessageBox.Show("You clicked at " + p.X + " - " + p.Y);
}
Private Sub FpSpread1CellClick(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.CellClickEventArgs) Handles FpSpread1.CellClick
         MessageBox.Show("You clicked at " & e.X & " - " & e.Y)
End Sub
参照

CellClickEventArgs クラス
CellClickEventArgs メンバ

 

 


© 2004-2015, GrapeCity inc. All rights reserved.