예제 #1
0
 /// <summary>
 /// Adds droplines to the chart.
 /// </summary>
 public ExcelChartStyleItem AddDropLines()
 {
     if (_dropLines == null)
     {
         _dropLines = new ExcelChartStyleItem(NameSpaceManager, ChartNode, this, _dropLinesPath, RemoveDropLines);
         var chart = _topChart ?? this;
         chart.ApplyStyleOnPart(_upBar, chart.StyleManager?.Style?.DropLine);
     }
     return(_dropLines);
 }
예제 #2
0
 /// <summary>
 /// Adds High-Low lines to the chart.
 /// </summary>
 public ExcelChartStyleItem AddHighLowLines()
 {
     if (_hiLowLines == null)
     {
         _hiLowLines = new ExcelChartStyleItem(NameSpaceManager, ChartNode, this, _hiLowLinesPath, RemoveHiLowLines);
         var chart = _topChart ?? this;
         if (chart.StyleManager.StylePart != null)
         {
             chart.StyleManager.ApplyStyle(_hiLowLines, chart.StyleManager.Style.HighLowLine);
         }
     }
     return(HighLowLine);
 }
예제 #3
0
 /// <summary>
 /// Adds up and/or down bars to the chart.
 /// </summary>
 /// <param name="upBars">Adds up bars if up bars does not exist.</param>
 /// <param name="downBars">Adds down bars if down bars does not exist.</param>
 public void AddUpDownBars(bool upBars = true, bool downBars = true)
 {
     if (upBars && _upBar == null)
     {
         _upBar = new ExcelChartStyleItem(NameSpaceManager, ChartNode, this, _upBarPath, RemoveUpBar);
         var chart = _topChart ?? this;
         chart.ApplyStyleOnPart(_upBar, chart.StyleManager?.Style?.UpBar);
     }
     if (downBars && _downBar == null)
     {
         _downBar = new ExcelChartStyleItem(NameSpaceManager, ChartNode, this, _downBarPath, RemoveDownBar);
         var chart = _topChart ?? this;
         chart.ApplyStyleOnPart(_upBar, chart.StyleManager?.Style?.DownBar);
     }
 }
예제 #4
0
 private void RemoveHiLowLines()
 {
     _hiLowLines = null;
 }
예제 #5
0
 private void RemoveDropLines()
 {
     _dropLines = null;
 }
예제 #6
0
 private void RemoveDownBar()
 {
     _downBar = null;
 }
예제 #7
0
 private void RemoveUpBar()
 {
     _upBar = null;
 }