Syntax 1 For
the colors of a series
Description
Obtains the colors associated with a series in a graph.
Applies to
PowerBuilder DataWindow
DataWindow control
Syntax
PowerBuilder
|
1 |
integer dwcontrol.GetSeriesStyle ( string graphcontrol, string seriesname, grColorType colortype, REF long colorvariable ) |
|
Argument |
Description |
|---|---|
|
dwcontrol |
A reference to the DataWindow control containing |
|
graphcontrol |
A string whose value is the name of the graph in |
|
seriesname |
A string whose value is the name of the series for |
|
colortype |
A value of the grColorType enumerated datatype (in For a list of values, see grColorType. |
|
colorvariable |
In PowerBuilder, a long variable in which you want |
Return value
Returns 1 if it succeeds and -1 if an error occurs. In
PowerBuilder, stores in colorvariable the RGB value of the specified
series and item. If any argument’s value is null, GetSeriesStyle returns
null.
Examples
These statements store in the variable color_nbr the background
color used for the series PCs in the graph gr_computers in the
DataWindow control dw_equipment:
|
1 2 3 4 |
long color_nbr // Get the color. dw_equipment.GetSeriesStyle("gr_computers", & "PCs", Background!, color_nbr) |
See also