IChartTrendLine.Text

Syntax

Text: String;

Description

The Text property determines whether custom name is used for a trend line.

Comments

To determine a custom name, set the UseAutomaticText property to False.

Example

This example assumes that there is the Chart object of the IChart type.

Sub TrendLine;

Var

Chart: IChart;

Begin

Chart.Series.Item(0).TrendLines.Item(0).Text := "trendline";

End Sub TrendLine;

After executing the example the chart legend displays the specified name for the trend line.

See also:

IChartTrendLine | IChartTrendLine.UseAutomaticText