public PlotAreaStyle CreateChartPlotAreaStyle(XmlNode nodeStyle)
{
PlotAreaStyle plotareaStyle = new PlotAreaStyle (this.Chart .Document);
plotareaStyle.Node = nodeStyle;
IPropertyCollection pCollection = new IPropertyCollection ();
if (nodeStyle.HasChildNodes)
{
foreach(XmlNode nodeChild in nodeStyle.ChildNodes )
{
IProperty property = this.GetProperty (plotareaStyle,nodeChild);
if (property!=null)
pCollection.Add (property);
}
}
plotareaStyle.Node.InnerXml="";
foreach(IProperty property in pCollection)
plotareaStyle.PropertyCollection .Add (property);
//this.Chart .Styles .Add (plotareaStyle);
return plotareaStyle;
}