/// <summary> /// Add a legend with parameters to the chart. /// </summary> public void AddLegend(ChartLegendPosition position, Boolean overlay) { if (Legend != null) RemoveLegend(); Legend = new ChartLegend(position, overlay); ChartRootXml.Add(Legend.Xml); }
public void AddLegend(ChartLegendPosition position, bool overlay) { if (Legend != null) { RemoveLegend(); } Legend = new ChartLegend(position, overlay); ChartRootXml.Element(XName.Get("plotArea", DocX.c.NamespaceName)).AddAfterSelf(Legend.Xml); }
/// <summary> /// Add a legend with parameters to the chart. /// </summary> public void AddLegend(ChartLegendPosition position, Boolean overlay) { if (Legend != null) { RemoveLegend(); } Legend = new ChartLegend(position, overlay); ChartRootXml.Add(Legend.Xml); }
/// <summary> /// Add a legend with parameters to the chart. /// </summary> public void AddLegend(ChartLegendPosition position, Boolean overlay) { if (Legend != null) { RemoveLegend(); } Legend = new ChartLegend(position, overlay); //ChartRootXml.Add(Legend.Xml); // Sourceman: seems to be necessary to keep track of the order of elements as defined in the schema (Word 2013) ChartRootXml.Element(XName.Get("plotArea", DocX.c.NamespaceName)).AddAfterSelf(Legend.Xml); }
/// <summary> /// Remove the legend from the chart. /// </summary> public void RemoveLegend() { Legend.Xml.Remove(); Legend = null; }
/// <summary> /// Add a legend with parameters to the chart. /// </summary> public void AddLegend(ChartLegendPosition position, Boolean overlay) { if (Legend != null) RemoveLegend(); Legend = new ChartLegend(position, overlay); //ChartRootXml.Add(Legend.Xml); // Sourceman: seems to be necessary to keep track of the order of elements as defined in the schema (Word 2013) ChartRootXml.Element(XName.Get("plotArea", DocX.c.NamespaceName)).AddAfterSelf(Legend.Xml); }