[]
Represents a trendline in a chart. A trendline shows the trend, or direction, of data in a series.
public interface ITrendline
Gets or sets the number of periods (or units on a scatter chart) that the trendline extends backward.
double Backward { get; set; }
Returns a IDataLabel object that represents the data label associated with the trendline.
IDataLabel DataLabel { get; }
Gets or sets whether to display the equation for the trendline (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.
bool DisplayEquation { get; set; }
Gets or sets whether to display the R-squared value (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.
bool DisplayRSquared { get; set; }
Returns the format for chart elements.
IChartFormat Format { get; }
Gets or sets the number of periods (or units on a scatter chart) that the trendline extends forward.
double Forward { get; set; }
Returns the index number of the object within the collection of similar objects.
int Index { get; }
Gets or sets the point where the trendline crosses the value axis.
double Intercept { get; set; }
Returns or sets a String value representing the name of the object.
string Name { get; set; }
Get or set if the trendline's name is automatically determined.
bool NameIsAuto { get; set; }
Gets or sets the trendline order (an integer is greater than or equal to 2 and less than or equal to 6) when the trendline type is Polynomial.
int Order { get; set; }
Returns the parent object for the specified object.
ISeries Parent { get; }
Gets or sets the period for the moving-average trendline.
int Period { get; set; }
Gets or sets the trendline type.
TrendlineType Type { get; set; }
Clears the formatting of the object.
void ClearFormats()
Deletes the object.
void Delete()