FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SpreadView Class : HitTest(Int32,Int32) Method |
'Declaration Public Function HitTest( _ ByVal x As Integer, _ ByVal y As Integer _ ) As HitTestInformation
'Usage Dim instance As SpreadView Dim x As Integer Dim y As Integer Dim value As HitTestInformation value = instance.HitTest(x, y)
public HitTestInformation HitTest( int x, int y )
private void fpSpread1_CellClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e) { FarPoint.Win.Spread.SpreadView sv; sv = fpSpread1.GetRootWorkbook(); FarPoint.Win.Spread.HitTestInformation hit; hit = sv.HitTest(e.X, e.Y); listBox1.Items.Add(hit.Type); }
Private Sub FpSpread1_CellClick(sender As Object, e As FarPoint.Win.Spread.CellClickEventArgs) Handles FpSpread1.CellClick Dim sv As FarPoint.Win.Spread.SpreadView sv = FpSpread1.GetRootWorkbook() Dim hit As FarPoint.Win.Spread.HitTestInformation hit = sv.HitTest(e.X, e.Y) ListBox1.Items.Add(hit.Type) End Sub
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10