Table of Contents

TXlsChart.GetTrendline Method

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

Syntax

Unit: FlexCel.XlsAdapter

function TXlsChart.GetTrendline(const chartIndex: Integer; const seriesIndex: Integer): IChartTrendline;

Parameters

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

Returns

The trendline definition if there is one, null otherwise. For xls charts this method will always return null.

See also