Trendline Class

Trendline class

Represents a trendline in a chart.


type Trendline struct  {
	ptr unsafe.Pointer
}

Constructors

MethodDescription
NewTrendlineConstructs from a parent object.

Methods

MethodDescription
IsNullChecks whether the implementation object is nullptr.
IsNameAutoReturns if Microsoft Excel automatically determines the name of the trendline.
SetIsNameAutoReturns if Microsoft Excel automatically determines the name of the trendline.
GetTypeReturns the trendline type.
GetNameReturns the name of the trendline.
SetNameReturns the name of the trendline.
GetOrderReturns or sets the trendline order (an integer greater than 1) when the trendline type is Polynomial.The order must be between 2 and 6.
SetOrderReturns or sets the trendline order (an integer greater than 1) when the trendline type is Polynomial.The order must be between 2 and 6.
GetPeriodReturns or sets the period for the moving-average trendline.
SetPeriodReturns or sets the period for the moving-average trendline.
GetForwardReturns 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 or equal to zero.
SetForwardReturns 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 or equal to zero.
GetBackwardReturns 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 or equal to zero.If the chart type is column ,the number of periods must be between 0 and 0.5
SetBackwardReturns 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 or equal to zero.If the chart type is column ,the number of periods must be between 0 and 0.5
GetDisplayEquationRepresents 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.
SetDisplayEquationRepresents 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.
GetDisplayRSquaredRepresents 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.
SetDisplayRSquaredRepresents 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.
GetInterceptReturns or sets the point where the trendline crosses the value axis.
SetInterceptReturns or sets the point where the trendline crosses the value axis.
GetDataLabelsRepresents the DataLabels object for the specified series.
GetLegendEntryGets the legend entry according to this trendline
GetCompoundTypeSpecifies the compound line type
SetCompoundTypeSpecifies the compound line type
GetDashTypeSpecifies the dash line type
SetDashTypeSpecifies the dash line type
GetCapTypeSpecifies the ending caps.
SetCapTypeSpecifies the ending caps.
GetJoinTypeSpecifies the joining caps.
SetJoinTypeSpecifies the joining caps.
GetBeginTypeSpecifies an arrowhead for the begin of a line.
SetBeginTypeSpecifies an arrowhead for the begin of a line.
GetEndTypeSpecifies an arrowhead for the end of a line.
SetEndTypeSpecifies an arrowhead for the end of a line.
GetBeginArrowLengthSpecifies the length of the arrowhead for the begin of a line.
SetBeginArrowLengthSpecifies the length of the arrowhead for the begin of a line.
GetEndArrowLengthSpecifies the length of the arrowhead for the end of a line.
SetEndArrowLengthSpecifies the length of the arrowhead for the end of a line.
GetBeginArrowWidthSpecifies the width of the arrowhead for the begin of a line.
SetBeginArrowWidthSpecifies the width of the arrowhead for the begin of a line.
GetEndArrowWidthSpecifies the width of the arrowhead for the end of a line.
SetEndArrowWidthSpecifies the width of the arrowhead for the end of a line.
GetThemeColorGets and sets the theme color.
SetThemeColorGets and sets the theme color.
GetColorRepresents the of the line.
SetColorRepresents the of the line.
GetTransparencyReturns or sets the degree of transparency of the line as a value from 0.0 (opaque) through 1.0 (clear).
SetTransparencyReturns or sets the degree of transparency of the line as a value from 0.0 (opaque) through 1.0 (clear).
GetStyleRepresents the style of the line.
SetStyleRepresents the style of the line.
GetWeightGets or sets the of the line.
SetWeightGets or sets the of the line.
GetWeightPtGets or sets the weight of the line in unit of points.
SetWeightPtGets or sets the weight of the line in unit of points.
GetWeightPxGets or sets the weight of the line in unit of pixels.
SetWeightPxGets or sets the weight of the line in unit of pixels.
GetFormattingTypeGets or sets format type.
SetFormattingTypeGets or sets format type.
IsAutomaticColorIndicates whether the color of line is automatic assigned.
IsVisibleRepresents whether the line is visible.
SetIsVisibleRepresents whether the line is visible.
IsAutoIndicates whether this line style is auto assigned.
SetIsAutoIndicates whether this line style is auto assigned.
GetGradientFillRepresents gradient fill.