IChartTrendLine.UseAutomaticText

Syntax

UseAutomaticText: Boolean;

Description

The UseAutomaticText property determines whether a trend line is named automatically.

Comments

If this property is set to True, the trend line is named automatically. If this property is set to False, the name is not assigned automatically, and the user should determine the Text property.

The property is set to True by default.

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).UseAutomaticText := False;
    Chart.Series.Item(0).TrendLines.Item(0).Text := "trend line";
End Sub TrendLine;

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

See also:

IChartTrendLine | IChartTrendLine.Text