Skip to main content
A newer version of this page is available. .

TrendlineCollection.Add(ChartTrendlineType, String) Method

Creates a new trendline of the specified type with the specified name and adds it to the collection.

Namespace: DevExpress.Spreadsheet.Charts

Assembly: DevExpress.Spreadsheet.v18.2.Core.dll

Declaration

Trendline Add(
    ChartTrendlineType trendlineType,
    string customName
)

Parameters

Name Type Description
trendlineType ChartTrendlineType

A ChartTrendlineType enumeration member that specifies the trendline type.

customName String

A string that is the custom name of the trendline.

Returns

Type Description
Trendline

A Trendline object that is the newly added element in the collection.

See Also