GaugeClearTrendpoints method (WinStudio scripts)

Applies To

IWSFormComponent interface

Definition

This method clears all trend points from a gauge component.

Syntax

gauge.GaugeClearTrendpoints( )

Remarks

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

Example

In this example, the GaugeClearTrendpoints method is being used to make sure that existing trend points are removed from the gauge before a new one is rendered.

This example is given in Visual Basic.

gauge.GaugeClearTrendpoints()
            

Dim trendpoint As Trendpoint
trendpoint.StartValue = 7
trendpoint.Color = "FFFFFF"
trendpoint.Dashed = True
trendpoint.DisplayValue = "Target"
gauge.GaugeAddTrendpoint(trendpoint)
Related topics