Compartilhar via


ITrendlines.Add Method

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function Add ( _
    Type As XlTrendlineType, _
    Order As Object, _
    Period As Object, _
    Forward As Object, _
    Backward As Object, _
    Intercept As Object, _
    DisplayEquation As Object, _
    DisplayRSquared As Object, _
    Name As Object _
) As Trendline
'Usage
Dim instance As ITrendlines
Dim Type As XlTrendlineType
Dim Order As Object
Dim Period As Object
Dim Forward As Object
Dim Backward As Object
Dim Intercept As Object
Dim DisplayEquation As Object
Dim DisplayRSquared As Object
Dim Name As Object
Dim returnValue As Trendline

returnValue = instance.Add(Type, Order, _
    Period, Forward, Backward, Intercept, _
    DisplayEquation, DisplayRSquared, _
    Name)
Trendline Add(
    XlTrendlineType Type,
    Object Order,
    Object Period,
    Object Forward,
    Object Backward,
    Object Intercept,
    Object DisplayEquation,
    Object DisplayRSquared,
    Object Name
)

Parameters

Return Value

Type: Microsoft.Office.Interop.Excel.Trendline

See Also

Reference

ITrendlines Interface

ITrendlines Members

Microsoft.Office.Interop.Excel Namespace