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