GetLabelText (Method)

Applies To:

TrendLine object, ReferenceLine object

Description:

Returns the label text for the specified z layer (by default, 1).

Syntax:

Expression.GetLabelText([optional] Number z)

Example:

This example shows how to return the label text from trend lines 1 and 2, and writes them to the Console window:

Console.Write(ActiveDocument.Sections["Chart"].TrendLines[1].GetLabelText())
Console.Write(ActiveDocument.Sections["Chart"].TrendLines[2].GetLabelText())