Represents a trendline.

Inheritance

Inherited from: ChartObject

Returns the owning chart (read-only)

public WorksheetChart Chart { get; }

Inherited from: ChartObject

returns this object's owner. (read-only)

public ChartObject Owner { get; }

Inherited from: ChartObject

The owning sheet (read-only)

public Sheet Sheet { get; }

Inherited from: ChartObject

The owning workbook (read-only)

public Workbook Workbook { get; }

Inherited from: ChartObject

The owning worksheet (read-only)

public Worksheet Worksheet { get; }

Specifies the number of periods or units by which the trendline extends backward.

public double Backward { get; set; }

Specifies the number of periods or units by which the trendline extends forward.

public double Forward { get; set; }

Specifies the value axis intercept for the trendline.

public double? Intercept { get; set; }

Returns or sets a instance which determines the text and appearance of the trendline label.

public TrendlineLabel Label { get; set; }

Returns a instance which determines the appearance of this trendline's appearance in the .

public LegendEntry LegendEntry { get; }

Returns or sets a instance which controls the color and width of the trendline.

public TrendlineLine Line { get; set; }

Specifies the name of the trendline.

public string Name { get; set; }

Specifies the order/degree of the polynomial function which defines the trendline. Applicable only when the property is set to Polynomial.

public TrendlinePolynomialOrder Order { get; set; }

Specifies the period for a moving-average trendline. Applicable only when the property is set to MovingAverage.

public int Period { get; set; }

Specifies the type of trendline, i.e., linear, exponential, polynomial, etc.

public TrendlineType TrendlineType { get; set; }