GetSeriesTransparency PowerScript function
Description
Obtains the transparency percentage of a series in a DirectX
3D graph (those with 3D rendering).
Controls
Graph controls in windows and user objects, and graphs in
DataWindow controls
Syntax
|
1 |
<span>controlname</span>.<span>GetSeriesTransparency</span> ( { <span>graphcontrol</span>, } <span>series</span>, <br><span>transparency</span> ) |
|
Argument |
Description |
|---|---|
|
controlname |
The name of the graph from which you |
|
graphcontrol (DataWindow control |
(Optional) A string whose value is the |
|
series |
The string that identifies the series |
|
transparency |
Integer value for percent transparency. |
Return Values
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 |
string SeriesName |
|
1 |
integer rtn, ser_transp_value |
|
1 |
|
1 |
// Get the number of the series. |
|
1 |
SeriesNbr = dw_equipment.FindSeries( & |
|
1 |
"gr_computers", "Costs") |
|
1 |
rtn = dw_equipment.<span>GetSeriesTransparency</span>( & |
|
1 |
<span> </span> "gr_computers" <span>,</span> SeriesNbr, ser_transp_value) |
These statements obtain the transparency value of
the series named Income in the graph gr_1.
|
1 |
string SeriesName |
|
1 |
integer rtn, ser_transp_value |
|
1 |
|
1 |
SeriesNbr = gr_1.FindSeries("Income") |
|
1 |
rtn = gr_1.<span>GetSeriesTransparency</span>(SeriesName, & |
|
1 |
ser_transp_value) |