Spread Windows Forms 7.0 Product Documentation
Clone Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Chart Namespace > SpreadChart Class : Clone Method


Glossary Item Box

Creates and returns a copy of the object.

Syntax

Visual Basic (Declaration) 
Public Overrides Function Clone() As Object
Visual Basic (Usage)Copy Code
Dim instance As SpreadChart
Dim value As Object
 
value = instance.Clone()
C# 
public override object Clone()

Example

This example uses the Clone method.
C#Copy Code
FarPoint.Win.Spread.Chart.SpreadChart chart1 = new FarPoint.Win.Spread.Chart.SpreadChart();
FarPoint.Win.Spread.Chart.SpreadChart chart2 = (FarPoint.Win.Spread.Chart.SpreadChart)chart1.Clone();
Visual BasicCopy Code
Dim chart1 As New FarPoint.Win.Spread.Chart.SpreadChart()
Dim chart2 As FarPoint.Win.Spread.Chart.SpreadChart = DirectCast(chart1.Clone(), FarPoint.Win.Spread.Chart.SpreadChart)

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.