FarPoint.Web.Chart Assembly > FarPoint.Web.Chart Namespace > FpChart Class > HitTest Method : HitTest(Single,Single) Method |
'Declaration Public Overloads Function HitTest( _ ByVal x As Single, _ ByVal y As Single _ ) As HitTest
FpChart1.EnableClickEvent = true; protected void FpChart1_Click(object sender, ImageClickEventArgs e) { HitTest hitTest = this.FpChart1.HitTest(e.X,e.Y); this.Label1.Text = hitTest.ToString(); }
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load FpChart1.EnableClickEvent = True End Sub Protected Sub FpChart1_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles FpChart1.Click Dim hit As FarPoint.Web.Chart.HitTest hit = FpChart1.HitTest(e.X, e.Y) ListBox1.Items.Add(hit.ToString()) End Sub
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6