IChartTrendLine.Text

Syntax

Text: String;

Description

The Text property specifies whether custom text is to be used for a trend line.

Comments

To specify a custom text you need to 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 text for the trend line.

See also:

IChartTrendLine | IChartTrendLine.UseAutomaticText