Xceed Chart for WinForms v4.4 Documentation
OpenInNewWindowMode Property
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > SeriesInteractivity Class : OpenInNewWindowMode Property
Controls the mode in which OpenInNewWindow flags are assigned to the data points of the series.
Syntax
'Declaration
 
<CategoryAttribute("URLs")>

<DefaultValueAttribute()>

<DescriptionAttribute("Controls the mode in which OpenInNewWindow flags are assigned to the data points of the series")>

Public Property OpenInNewWindowMode As SeriesOpenInNewWindowMode
'Usage
 
Dim instance As SeriesInteractivity

Dim value As SeriesOpenInNewWindowMode

 

instance.OpenInNewWindowMode = value

 

value = instance.OpenInNewWindowMode
[Category("URLs")]

[DefaultValue()]

[Description("Controls the mode in which OpenInNewWindow flags are assigned to the data points of the series")]

public SeriesOpenInNewWindowMode OpenInNewWindowMode {get; set;}
Remarks
By default set to Default.
Example
The following code creates a bar chart with three bars and assings custom URLs and OpenInNewWindow flags to them.
' create the bar series

Dim bar As BarSeries =  Chart.Series.Add(SeriesType.Bar) 

bar.Add(12)

bar.Add(23)

bar.Add(18)



' configure urls

bar.Interactivity.UrlMode = SeriesURLMode.DataPoints

bar.Interactivity.URLs.Add("www.xceedsoft.com")

bar.Interactivity.URLs.Add("www.microsoft.com")

bar.Interactivity.URLs.Add("www.opengl.org")



' configure OpenInNewWindow flags

bar.Interactivity.OpenInNewWindowMode = SeriesOpenInNewWindowMode.DataPoints

bar.Interactivity.OpenInNewWindow.Add(False)

bar.Interactivity.OpenInNewWindow.Add(True)

bar.Interactivity.OpenInNewWindow.Add(True)
// create the bar series

BarSeries bar = Chart.Series.Add(SeriesType.Bar);

bar.Add(12);

bar.Add(23);

bar.Add(18);



// configure urls

bar.Interactivity.UrlMode = SeriesURLMode.DataPoints;

bar.Interactivity.URLs.Add("www.xceedsoft.com");

bar.Interactivity.URLs.Add("www.microsoft.com");

bar.Interactivity.URLs.Add("www.opengl.org");



// configure OpenInNewWindow flags

bar.Interactivity.OpenInNewWindowMode = SeriesOpenInNewWindowMode.DataPoints;

bar.Interactivity.OpenInNewWindow.Add(false);

bar.Interactivity.OpenInNewWindow.Add(true);

bar.Interactivity.OpenInNewWindow.Add(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

SeriesInteractivity Class
SeriesInteractivity Members