ChartClearTrendLines method (WinStudio scripts)

Applies To

IWSFormComponent interface

Definition

This method clears all trend lines from a chart component.

Syntax

chart.ChartClearTrendLines( )

Remarks

This method can be helpful when you want to add trend lines to a chart. Use this method to clear existing trend lines before adding the new ones.

Example

In this example, the ChartClearTrendLines method is being used to make sure that existing trend lines are removed from the chart before a new one is drawn.

This example is given in Visual Basic.

chart.ChartClearTrendLines()
Dim trendLine As TrendLine
trendLine.StartValue = 1.5
trendLine.Color = "00FF00"
trendLine.Dashed = True
trendLine.DisplayValue = "High"
chart.ChartAddTrendLine( trendLine )
Rubriques liées