LabelFormat (Property)

Applies To:

TrendLine object, ReferenceLine object

Description:

Returns or sets the text of the trend line label.

Action:

Read-write, String

Example:

This example shows how to name the trend line label to “Trend Line for Sales”:

ActiveDocument.Sections["Chart6"].TrendLines[1].LabelFormat = "Trend Line for Sales"