ChartSetProperty method (WinStudio scripts)

Applies To

IWSFormComponent interface

Definition

This method sets the value of a chart property specified by the ChartProperty enumeration to a designated value.

Syntax

ChartSetProperty<T>( ChartProperty.propertyName, T value )

  Part     Description    
<T> Required. Indicates a generic datatype parameter.
propertyName Required. Specifies the name of the chart 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 ChartProperty enumeration contains a value for each available chart property.

Examples

In C#:

IWSFormComponent chart = ThisForm.Components("chart1"); 
string xAxisName = chart.ChartGetProperty<string>(ChartProperty.XAxisName); 
chart.ChartSetProperty(ChartProperty.XAxisName, "Sales");

In VB:

Dim chart As IWSFormComponent = ThisForm.Components("chart1")
Dim xAxisName As String = chart.ChartGetProperty(Of String)(ChartProperty.XAxisName)
chart.ChartSetProperty(ChartProperty.XAxisName, "Sales")
Related topics