public XmlNode BuildNode()
{
foreach(ChartAxis axes in AxisCollection)
{
if (this.Document .IsLoadedFile &&axes.IsModified&&!this.Chart .IsNewed)
axes.Node =this.Chart .ChartDoc .ImportNode (axes.Node ,true);
this.Node.AppendChild (axes.Node);
}
foreach(Dr3dLight light in Dr3dLightCollection)
{
this.Node .AppendChild (light.Node );
}
foreach(ChartSeries series in SeriesCollection)
{
//node=this.Chart .ChartDoc.ImportNode (series.BuildNode (),true );
this.Node .AppendChild (series.BuildNode ());
}
return this.Node ;
}