Table of Contents

XlsxChart.GetTrendline Method

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

Syntax

Namespace: FlexCel.XlsAdapter

public override TChartTrendline GetTrendline(Int32 chartIndex, Int32 seriesIndex)

Parameters

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

Returns

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

See also