/// <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); }
/// <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); }
/// <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); } }
private void RemoveHiLowLines() { _hiLowLines = null; }
private void RemoveDropLines() { _dropLines = null; }
private void RemoveDownBar() { _downBar = null; }
private void RemoveUpBar() { _upBar = null; }