public ChartLegend(Chart chart) { this.Chart =chart; this.Document =chart.Document; this.NewXmlNode (null); this.LegendStyle = new LegendStyle (chart.Document); chart.Content .Add (this); }