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

integer dwcontrol.GetSeriesStyle ( string graphcontrol, string seriesname, grColorType colortype, REF long colorvariable )

Argument

Description

dwcontrol

A reference to the DataWindow control containing the graph.

graphcontrol

A string whose value is the name of the graph in the DataWindow control.

seriesname

A string whose value is the name of the series for which you want the color.

colortype

A value of the grColorType enumerated datatype (in PowerBuilder) specifying the aspect of the series for which you want the color.

For a list of values, see grColorType.

colorvariable

In PowerBuilder, a long variable in which you want to store the color's RGB value.


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:

long color_nbr
// Get the color.
dw_equipment.GetSeriesStyle("gr_computers", &
      "PCs", Background!, color_nbr)

See also

GetDataStyle

GetSeriesStyleColorValue

FindSeries

SetDataStyle

SetSeriesStyle