Hide Comments
Hide Comments

Comments (0)

Creates a "deep" copy of the chart. It constructs a new chart of the correct type and then calls the Assign method to copy its properties to the new copy.

alert_cautionCaution

Note that the new TRSCustomChart has the same owner as the current chart. If there is no owner, you are responsible for freeing the new clone.

Namespace: FMX.RS.ChartPanel

expandingSyntax

Delphi

public
  function Clone: TRSCustomChart;
 

Return Value

Type: TRSCustomChart

expandingExamples

The following code creates a copy of the chart and changes the values of the cloned chart:
 

Delphi

var
   C: TRSChart;
   i: Integer;
 begin
   C := RSLineChart1.Clone as TRSChart;
   for i := 0 to C.Values.Count - 1 do
     C.Values[i].Y := 1 - C.Values[i].Y;
 end; 

expandingSee Also

Comments (0)

RiverSoftAVG Charting Component Suite (RCCS) © 2005-2015, Thomas G. Grubb