Gets or sets a value that indicates whether to output the image map.
Syntax
Visual Basic (Declaration) | |
---|
Public Overridable Property RenderMapArea As Boolean |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As FpChart
Dim value As Boolean
instance.RenderMapArea = value
value = instance.RenderMapArea |
C# | |
---|
public virtual bool RenderMapArea {get; set;} |
Remarks
Example
This example uses the RenderMapArea property.
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 Basic | Copy 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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also