Table of Contents

IExcelChart.SetTrendline Method

Gets a trendline for a chart. This method is only implemented for xlsx charts.

Syntax

Unit: FlexCel.Core

procedure IExcelChart.SetTrendline(const chartIndex: Integer; const seriesIndex: Integer; trendline: IChartTrendline); virtual; abstract;

Parameters

<-> Parameter Type Description
const chartIndex Integer Index of the chart (1 based). Must be bigger than 0 and less-or-equal than SubchartCount
const seriesIndex Integer Index of the series in the chart (1 based). Must be bigger than 0 and less-or-equal than SeriesInSubchart
trendline IChartTrendline Trendline definition.

See also