Trendline Properties

The Trendline type exposes the following members.

Properties
  NameDescription
Public propertyBackward
Returns or sets the number of periods (or units on a scatter chart) that the trendline extends backward. The number of periods must be greater than and equal to zero. If the chart type is column ,the number of periods must be between 0 and 0.5
Public propertyBeginArrowLength
Specifies the length of the arrowhead for the begin of a line.
(Inherited from Line.)
Public propertyBeginArrowWidth
Specifies the width of the arrowhead for the begin of a line.
(Inherited from Line.)
Public propertyBeginType
Specifies an arrowhead for the begin of a line.
(Inherited from Line.)
Public propertyCapType
Specifies the ending caps.
(Inherited from Line.)
Public propertyColor
Represents the Color of the line.
(Inherited from Line.)
Public propertyCompoundType
Specifies the compound line type
(Inherited from Line.)
Public propertyDashType
Specifies the dash line type
(Inherited from Line.)
Public propertyDataLabels
Represents the DataLabels object for the specified ASeries.
Public propertyDisplayEquation
Represents 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 propertyDisplayRSquared
Represents 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 propertyEndArrowLength
Specifies the length of the arrowhead for the end of a line.
(Inherited from Line.)
Public propertyEndArrowWidth
Specifies the width of the arrowhead for the end of a line.
(Inherited from Line.)
Public propertyEndType
Specifies an arrowhead for the end of a line.
(Inherited from Line.)
Public propertyFormattingType
Gets or sets format type.
(Inherited from Line.)
Public propertyForward
Returns or sets the number of periods (or units on a scatter chart) that the trendline extends forward. The number of periods must be greater than and equal to zero.
Public propertyGradientFill
Represents gradient fill.
(Inherited from Line.)
Public propertyIntercept
Returns or sets the point where the trendline crosses the value axis.
Public propertyIsAuto
Indicates whether this line style is auto assigned.
(Inherited from Line.)
Public propertyIsAutomaticColor
Indicates whether the color of line is auotmatic assigned.
(Inherited from Line.)
Public propertyIsNameAuto
Returns if Microsoft Excel automatically determines the name of the trendline.
Public propertyIsVisible
Represents whether the line is visible.
(Inherited from Line.)
Public propertyJoinType
Specifies the joining caps.
(Inherited from Line.)
Public propertyLegendEntry
Gets the legend entry according to this trendline
Public propertyName
Returns the name of the trendline.
Public propertyOrder
Returns or sets the trendline order (an integer greater than 1) when the trendline type is Polynomial. The order must be between 2 and 6.
Public propertyPeriod
Returns or sets the period for the moving-average trendline.
Public propertyStyle
Represents the style of the line.
(Inherited from Line.)
Public propertyThemeColor
Gets and sets the theme color.
(Inherited from Line.)
Public propertyTransparency
Returns or sets the degree of transparency of the line as a value from 0.0 (opaque) through 1.0 (clear).
(Inherited from Line.)
Public propertyType
Returns the trendline type.
Public propertyWeight
Gets or sets the WeightType of the line.
(Inherited from Line.)
Public propertyWeightPt
Gets or sets the weight of the line in unit of points.
(Inherited from Line.)
Public propertyWeightPx
Gets or sets the weight of the line in unit of pixels.
(Inherited from Line.)
See Also