GetSeriesTransparency
PowerScript function
Description
Obtains the transparency percentage of a series in a DirectX 3D
graph (those with 3D rendering).
Applies to
Graph controls in windows and user objects, and graphs in DataWindow
controls
Syntax
|
1 |
controlname.GetSeriesTransparency ( { graphcontrol, } series, transparency ) |
|
Argument |
Description |
|---|---|
|
controlname |
The name of the graph from which you want series |
|
graphcontrol (DataWindow control only) |
(Optional) A string whose value is the name of the graph |
|
series |
The string that identifies the series from which you want |
|
transparency |
Integer value for percent transparency. A value of 0 means |
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs. If any
argument’s value is null, GetSeriesTransparency returns null.
Usage
GetSeriesTransparency retrieves data from any DirectX 3D graph
(those with 3D rendering).
Examples
These statements obtain the transparency value of the series named
Costs in the graph gr_computers in the DataWindow control
dw_equipment:
|
1 2 3 4 5 6 7 8 |
string SeriesName integer rtn, ser_transp_value // Get the number of the series. SeriesNbr = dw_equipment.FindSeries( & "gr_computers", "Costs") rtn = dw_equipment.GetSeriesTransparency( & "gr_computers" , SeriesNbr, ser_transp_value) |
These statements obtain the transparency value of the series named
Income in the graph gr_1.
|
1 2 3 4 5 6 |
string SeriesName integer rtn, ser_transp_value SeriesNbr = gr_1.FindSeries("Income") rtn = gr_1.GetSeriesTransparency(SeriesName, & ser_transp_value) |
See also