Text: String;
The Text property determines whether custom name is used for a trend line.
To determine a custom name, set the UseAutomaticText property to False.
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: