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