LegendFormat (Property)

Applies to:

TrendLine object

Description:

Returns or sets the text of the trend line legend.

Action:

Read-write, String

Example:

This example shows how to name the trend line legend text to “Trend Line for North Eastern Sales”:

ActiveDocument.Sections["Chart6"].TrendLines[1].LegendFormat = "Trend Line for North Eastern Sales"