Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.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