Partager via


Trendline Class

Defines the Trendline Class.When the object is serialized out as xml, its qualified name is c:trendline.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.Charts.Trendline

Namespace:  DocumentFormat.OpenXml.Drawing.Charts
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(ChartShapeProperties))> _
<ChildElementInfoAttribute(GetType(PolynomialOrder))> _
<ChildElementInfoAttribute(GetType(Period))> _
<ChildElementInfoAttribute(GetType(TrendlineName))> _
<ChildElementInfoAttribute(GetType(TrendlineType))> _
<ChildElementInfoAttribute(GetType(Forward))> _
<ChildElementInfoAttribute(GetType(Backward))> _
<ChildElementInfoAttribute(GetType(Intercept))> _
<ChildElementInfoAttribute(GetType(DisplayRSquaredValue))> _
<ChildElementInfoAttribute(GetType(DisplayEquation))> _
<ChildElementInfoAttribute(GetType(TrendlineLabel))> _
<ChildElementInfoAttribute(GetType(ExtensionList))> _
Public Class Trendline _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As Trendline
[ChildElementInfoAttribute(typeof(ChartShapeProperties))]
[ChildElementInfoAttribute(typeof(PolynomialOrder))]
[ChildElementInfoAttribute(typeof(Period))]
[ChildElementInfoAttribute(typeof(TrendlineName))]
[ChildElementInfoAttribute(typeof(TrendlineType))]
[ChildElementInfoAttribute(typeof(Forward))]
[ChildElementInfoAttribute(typeof(Backward))]
[ChildElementInfoAttribute(typeof(Intercept))]
[ChildElementInfoAttribute(typeof(DisplayRSquaredValue))]
[ChildElementInfoAttribute(typeof(DisplayEquation))]
[ChildElementInfoAttribute(typeof(TrendlineLabel))]
[ChildElementInfoAttribute(typeof(ExtensionList))]
public class Trendline : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • TrendlineName <c:name>

  • ChartShapeProperties <c:spPr>

  • TrendlineType <c:trendlineType>

  • PolynomialOrder <c:order>

  • Period <c:period>

  • Forward <c:forward>

  • Backward <c:backward>

  • Intercept <c:intercept>

  • DisplayRSquaredValue <c:dispRSqr>

  • DisplayEquation <c:dispEq>

  • TrendlineLabel <c:trendlineLbl>

  • ExtensionList <c:extLst>

[ISO/IEC 29500-1 1st Edition]

21.2.2.211 trendline (Trendlines)

This element specifies a trendline.

Parent Elements

ser (§21.2.2.168); ser (§21.2.2.170); ser (§21.2.2.174); ser (§21.2.2.171); ser (§21.2.2.167)

Child Elements

Subclause

backward (Backward)

§21.2.2.12

dispEq (Display Equation)

§21.2.2.43

dispRSqr (Display R Squared Value)

§21.2.2.44

extLst (Chart Extensibility)

§21.2.2.64

forward (Forward)

§21.2.2.73

intercept (Intercept)

§21.2.2.85

name (Trendline Name)

§21.2.2.116

order (Polynomial Trendline Order)

§21.2.2.129

period (Period)

§21.2.2.135

spPr (Shape Properties)

§21.2.2.197

trendlineLbl (Trendline Label)

§21.2.2.212

trendlineType (Trendline Type)

§21.2.2.213

[Note: The W3C XML Schema definition of this element’s content model (CT_Trendline) is located in §A.5.1. end note]

© ISO/IEC29500: 2008.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Trendline Members

DocumentFormat.OpenXml.Drawing.Charts Namespace