Spread for ASP.NET 7.0 Product Documentation
HitTest(MapAreaInfo) Method
See Also  Example Support Options
FarPoint.Web.Chart Assembly > FarPoint.Web.Chart Namespace > FpChart Class > HitTest Method : HitTest(MapAreaInfo) Method


areaInfo
MapAreaInfo

Glossary Item Box

Returns HitTest information using the MapAreaInfo object.

Syntax

Visual Basic (Declaration) 
Public Overloads Function HitTest( _
   ByVal areaInfo As MapAreaInfo _
) As HitTest
Visual Basic (Usage)Copy Code
Dim instance As FpChart
Dim areaInfo As MapAreaInfo
Dim value As HitTest
 
value = instance.HitTest(areaInfo)
C# 
public HitTest HitTest( 
   MapAreaInfo areaInfo
)

Parameters

areaInfo
MapAreaInfo

Return Value

HitTest

Example

This example uses the HitTest method.
C#Copy Code
FpChart1.RenderMapArea = true;
FpChart1.HotSpotMode = HotSpotMode.PostBack;

protected void FpChart1_MapAreaClick(object sender, MapAreaClickEventArgs e)
{
HitTest hitTest = this.FpChart1.HitTest(e.MapAreaInfo);
this.Label1.Text = hitTest.ToString();
}
Visual BasicCopy Code
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If (Me.IsPostBack) Then Return
        FpChart1.RenderMapArea = True
        FpChart1.HotSpotMode = HotSpotMode.PostBack
End Sub

Protected Sub FpChart1_MapAreaClick(ByVal sender As Object, ByVal e As FarPoint.Web.Chart.MapAreaClickEventArgs) Handles FpChart1.MapAreaClick
        Dim hit As FarPoint.Web.Chart.HitTest
        hit = FpChart1.HitTest(e.MapAreaInfo)
        ListBox1.Items.Add(hit.ToString())
End Sub

Requirements

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

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.