Spread ASP.NET 15
FarPoint.Web.Chart Assembly / FarPoint.Web.Chart Namespace / MapAreaClickEventArgs Class / MapAreaInfo Property

In This Topic
    MapAreaInfo Property (MapAreaClickEventArgs)
    In This Topic
    Gets or sets the MapAreaInfo indicates the event source.
    Public Property MapAreaInfo As MapAreaInfo
    Dim instance As MapAreaClickEventArgs
    Dim value As MapAreaInfo
    instance.MapAreaInfo = value
    value = instance.MapAreaInfo
    public MapAreaInfo MapAreaInfo {get; set;}
    This example uses the MapAreaInfo argument.
    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();
    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)
    End Sub
    See Also