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

Trendline Members

A trendline in a chart that shows trends in the series data.

Properties

Name Description
AutoName Gets or sets whether a name of the trendline is generated automatically.
Backward Gets or sets the number of categories (or units on a scatter chart) that the trendline extends before the data.
CustomName Gets or sets the name of the trendline.
DisplayEquation Gets or sets whether the trendline equation is displayed on a chart.
DisplayRSquare Gets or sets whether to display the R-squared value of the trendline on the chart.
Fill Provides access to fill options for the specified drawing object. Inherited from ShapeFormatBase.
Forward Gets or sets the number of categories (or units on a scatter chart) that the trendline extends after the data.
HasIntercept Gets or sets whether the trendline crosses the value axis at the point specified by the Trendline.Intercept property.
Intercept Gets or sets the point where the trendline crosses the value axis.
Label Provides access to trendline label options.
Order Gets or sets a value that specifies the trendline order.
Outline Provides access to the options used to format an outline of the specified drawing object. Inherited from ShapeFormatBase.
Period Gets or sets the period for the moving-average trendline.
TrendlineType Gets or sets the type of the trendline.

Methods

Name Description
ResetToMatchStyle() Removes custom formatting of the chart element and applies default formatting based on the chart style. Inherited from ShapeFormat.
See Also