Skip to main content

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.v24.1.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

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