Partager via


Trendline Members

Include Protected Members
Include Inherited Members

Represents a trendline in a chart. A trendline shows the trend, or direction, of data in a series.

The Trendline type exposes the following members.

Properties

  Name Description
Public property Application Returns an Application object that represents the Microsoft Excel application.
Public property Backward Returns or sets the number of periods (or units on a scatter chart) that the trendline extends backward.
Public property Backward2 Returns or sets the number of periods (or units on a scatter chart) that the trendline extends backward. Read/write.
Public property Border Returns a Border object that represents the border of the object.
Public property Creator Returns a 32-bit integer that indicates the application in which this object was created.
Public property DataLabel Returns a DataLabel object that represents the data label associated with the point or trendline.
Public property DisplayEquation True if the equation for the trendline is displayed on the chart (in the same data label as the R-squared value). Setting this property to True automatically turns on data labels.
Public property DisplayRSquared True if the R-squared value of the trendline is displayed on the chart (in the same data label as the equation). Setting this property to True automatically turns on data labels.
Public property Format Returns the format for chart elements. Read-only.
Public property Forward Returns or sets the number of periods (or units on a scatter chart) that the trendline extends forward.
Public property Forward2 Returns or sets the number of periods (or units on a scatter chart) that the trendline extends forward. Read/write.
Public property Index Returns the index number of the object within the collection of similar objects.
Public property Intercept Returns or sets the point where the trendline crosses the value axis.
Public property InterceptIsAuto True if the point where the trendline crosses the value axis is automatically determined by the regression.
Public property Name Returns or sets the name of the object.
Public property NameIsAuto True if Microsoft Excel automatically determines the name of the trendline.
Public property Order Returns or sets the trendline order (an integer greater than 1) when the trendline type is xlPolynomial.
Public property Parent Returns the parent object for the specified object.
Public property Period Returns or sets the period for the moving-average trendline.
Public property Type Returns or sets the trendline type.

Top

Methods

  Name Description
Public method ClearFormats Clears the formatting of the object.
Public method Delete Deletes the object.
Public method Select Selects the object.

Top

See Also

Reference

Trendline Interface

Microsoft.Office.Interop.Excel Namespace