GaugeSetProperty method (WinStudio scripts)

Applies To

IWSFormComponent interface

Definition

This method sets the value of a gauge property specified by the GaugeProperty enumeration to a designated value.

Syntax

GaugeSetProperty<T>( GaugeProperty.propertyName, T value )

  Part     Description    
<T> Required. Indicates a generic datatype parameter.
propertyName Required. Specifies the name of the gauge property for which you want to set the value.
T Required. Specifies the datatype of the property being set (string, int, float, etc.).
value Required. Specifies the value or a an expression that resolves to the value to which the property is to be set.  

Remarks

The GaugeProperty enumeration contains a value for each available gauge property.

Examples

C#

IWSFormComponent gauge = ThisForm.Components("gauge1");
string caption = gauge.GaugeGetProperty<string>(GaugeProperty.Caption);
gauge.GaugeSetProperty(GaugeProperty.Caption, "Total");

VB

Dim gauge As IWSFormComponent = ThisForm.Components("gauge1")
Dim caption As String = gauge.GaugeGetProperty(Of String)(GaugeProperty.Caption)
gauge.GaugeSetProperty(GaugeProperty.Caption, "Total");