IChartTrendLine.UseAutomaticText

Syntax

UseAutomaticText: Boolean;

Description

The UseAutomaticText property determines whether automatic text is to be used for a line.

Comments

If the property is set to True, text is assigned to a trend line automatically. If the property is set to False, the text is not assigned automatically, and you need to specify the Text property.

The default value of this property is True.

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 := "trendline";

End Sub TrendLine;

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

See also:

IChartTrendLine | IChartTrendLine.Text