ChartGetProperty method (WinStudio scripts)

Applies To

IWSFormComponent interface

Definition

Returns the value of a chart component property as specified in the ChartProperty enumeration.

Syntax

T ChartGetProperty<T>( ChartProperty.propertyName )

  Part     Description    
 T Required. Indicates the datatype of the property value being returned (string, int, float, etc.).
<T> Required. Indicates a generic datatype parameter.  
propertyName Required. Specifies the name of the chart property for which you want to retrieve the value.

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")
相关主题