MESCIUS SPREAD for ASP.NET 10.0J
HitTest(MapAreaInfo) メソッド

MapAreaInfo
MapAreaInfoオブジェクトを使用してHitTest情報を返します。
構文
'Declaration
 
Public Overloads Function HitTest( _
   ByVal areaInfo As MapAreaInfo _
) As HitTest
public HitTest HitTest( 
   MapAreaInfo areaInfo
)

パラメータ

areaInfo
MapAreaInfo

戻り値の型

HitTest
次のサンプルコードは、HitTestメソッドを使用します。
protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        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)
        ListBox1.Items.Add(hit.ToString())
End Sub
参照

FpChart クラス
FpChart メンバ
オーバーロード一覧

 

 


© MESCIUS inc. All rights reserved.