Trendline Interface

Represents a trendline in a chart.

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

Syntax

'Declaration
<GuidAttribute("91C46192-3124-4346-A815-10B8873F5A06")> _
Public Interface Trendline
'Usage
Dim instance As Trendline
[GuidAttribute("91C46192-3124-4346-A815-10B8873F5A06")]
public interface Trendline

Remarks

A trendline shows the trend, or direction, of data in a series. The Trendline object is a member of the Trendlines collection. The Trendlines collection contains all the Trendline objects for a single series.

Examples

Use Trendlines (Index), where Index is the trendline index number, to return a single Trendline object.

The index number denotes the order in which the trendlines were added to the series. Trendlines(1) is the first trendline added to the series, and Trendlines(Trendlines.Count) is the last one added.

The following example changes the trendline type for the first series of the first chart in the active document. If the series has no trendline, this example will fail.

See Also

Reference

Trendline Members

Microsoft.Office.Interop.Word Namespace