Xceed Chart for WinForms v4.4 Documentation
OpenInNewWindow Property (Interactivity)
Example 


Xceed.Chart.Standard.v4.4 Assembly > Xceed.Chart.Standard Namespace > Interactivity Class : OpenInNewWindow Property
Whether or not to open a new window to show the specified URL Page.
Syntax
'Declaration
 
<CategoryAttribute("General")>

<DescriptionAttribute("Whether or not to open a new window to show the specified URL Page.")>

Public Property OpenInNewWindow As Boolean
'Usage
 
Dim instance As Interactivity

Dim value As Boolean

 

instance.OpenInNewWindow = value

 

value = instance.OpenInNewWindow
[Category("General")]

[Description("Whether or not to open a new window to show the specified URL Page.")]

public bool OpenInNewWindow {get; set;}
Remarks
This property works only when you use the chart in Web forms with a response type of HTML image map. There also must be a specified URL to redirect the browser to. When set to true the browser will open a new window to display the page.
Example
The following code changes the URL and browser and opens a new window when the users clicks on the object.
ChartControl.InteractivityOperations.Add(New TooltipInteractivityOperation())



Dim label As ChartLabel =  ChartControl.Labels.AddHeader("Click here to see a cool chart") 

label.Interactivity.URL = "http://www.xceedsoft.com"

label.Interactivity.OpenInNewWindow = True
ChartControl.InteractivityOperations.Add(new TooltipInteractivityOperation());



ChartLabel label = ChartControl.Labels.AddHeader("Click here to see a cool chart");

label.Interactivity.URL = "http://www.xceedsoft.com";

label.Interactivity.OpenInNewWindow = true;
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Interactivity Class
Interactivity Members