Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.Chart Namespace / SpreadChart Class / Clone Method
Example


In This Topic
    Clone Method (SpreadChart)
    In This Topic
    Creates and returns a copy of the object.
    Syntax
    'Declaration
     
    Public Overrides Function Clone() As Object
    'Usage
     
    Dim instance As SpreadChart
    Dim value As Object
     
    value = instance.Clone()
    public override object Clone()
    Example
    This example uses the Clone method.
    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();
    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)
    See Also