|
Have you ever needed to make a duplicate of an existing Series in Dundas Chart while preserving all of its properties? This add-on makes it an easy one-liner.
Using the add-on
To use this add-on in your own code:
-
Copy CloneSeries.cs to your project.
-
On the Build tab of your project's Properties, add
DUNDAS_CHART_WEB or
DUNDAS_CHART_WIN to the
"Conditional compilation symbols" field if you're using
Dundas Chart for ASP.NET or Dundas Chart for Windows Forms,
respectively.
Note: One of
DUNDAS_CHART_WEB or
DUNDAS_CHART_WIN must be defined
in each of your project's configurations.
-
In your code, add the Dundas.Charting.Utilities namespace, and
use Cloner.CloneSeries() to duplicate
an existing series, copying all of its read-write properties except
for Name.
C#
using Dundas.Charting.Utilities;
…
Series clonedSeries = Cloner.CloneSeries( originalSeries, "Cloned Series" );
VisualBasic.NET
Imports Dundas.Charting.Utilities
…
Dim clonedSeries As Series = Cloner.CloneSeries(originalSeries, "Cloned Series")
About the download
The download features the Cloner source code and
a VisualStudio 2005 project to compile it.
|
| |
Additional Downloads:
CloneSeries.zip
|