MindFusion.Charting Programmer's Guide

Chart.Clone Method

See Also
 





Creates an exact copy of the current Chart object.

Namespace: MindFusion.Charting
Assembly: MindFusion.Charting

 Syntax

C#  Copy Code

public virtual Object Clone ()

Visual Basic  Copy Code

Public Overridable Function Clone () As Object

JavaScript  Copy Code

function Clone ()

 Return Value

The new chart object.

 Remarks

The method creates an exact copy of the current chart - all appearance settings and data is copied. It is overridden by all chart classes - the returned object must be cast to the chart type that you clone.

All properties, labels and data are cloned. The method is available only when you use the chart object programmatically.

 Example

C#  Copy Code

MindFusion.Charting.RadarChart myChart =
    new MindFusion.Charting.RadarChart(RadarType.Radar2D);

// Chart settings follow
MindFusion.Charting.RadarChart clonedChart =
    myChart.Clone() as MindFusion.Charting.RadarChart;

 See Also