예제 #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
파일: Chart.cs 프로젝트: ywscr/DocXNETCore
 /// <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
파일: Chart.cs 프로젝트: ywscr/DocXNETCore
 /// <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);
 }