Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 /// <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);
 }
Ejemplo n.º 4
0
 /// <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);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Remove the legend from the chart.
 /// </summary>
 public void RemoveLegend()
 {
     Legend.Xml.Remove();
     Legend = null;
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Remove the legend from the chart.
 /// </summary>
 public void RemoveLegend()
 {
     Legend.Xml.Remove();
     Legend = null;
 }
Ejemplo n.º 7
0
 /// <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);
 }