Xceed Chart for WinForms v4.4 Documentation
ActiveChart Property
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > ChartCollection Class : ActiveChart Property
Sets the current active chart.
Syntax
'Declaration
 
Public Property ActiveChart As Integer
'Usage
 
Dim instance As ChartCollection
Dim value As Integer
 
instance.ActiveChart = value
 
value = instance.ActiveChart
public int ActiveChart {get; set;}
Remarks
You can have an arbitrary number of charts, but only one chart can be active at a time.
Example
The following code adds a new chart to the chart collection and makes it the active one.
nChartControl1.Charts.Add()
nChartControl1.ActiveChart = nChartControl1.Charts.Count - 1
nChartControl1.Charts.Add();
nChartControl1.ActiveChart = nChartControl1.Charts.Count - 1;
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

ChartCollection Class
ChartCollection Members