示例#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);
 }
示例#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);
 }
示例#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);
 }
示例#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);
 }
示例#5
0
 /// <summary>
 /// Remove the legend from the chart.
 /// </summary>
 public void RemoveLegend()
 {
     Legend.Xml.Remove();
     Legend = null;
 }
示例#6
0
 /// <summary>
 /// Remove the legend from the chart.
 /// </summary>
 public void RemoveLegend()
 {
     Legend.Xml.Remove();
     Legend = null;
 }
示例#7
0
文件: Chart.cs 项目: super-rain/DocX
 /// <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);
 }