ResetDataColors

Description

Restores the color of a data point to the default color for its series.

Applies to

PowerBuilder DataWindow

DataWindow control

Syntax

PowerBuilder

integer dwcontrol.ResetDataColors ( string graphcontrol, integer seriesnumber, long datapointnumber )

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

seriesnumber

The number of the series in which you want to reset the color of a data point

datapointnumber

The number of the data point for which you want to reset the color


Return value

Returns 1 if it succeeds and -1 if an error occurs. If any argument's value is null, ResetDataColors returns null.

Default color for data points

To set the color for a series, use SetSeriesStyle. The color you set for the series is the default color for all data points in the series.

Examples

PowerBuilder

These statements change the color of data point 10 in the series named Costs in the graph gr_computers in the DataWindow control dw_equipment to the color for the series:

SeriesNbr = dw_equipment.FindSeries("gr_computers", &
      "Costs")
dw_equipment.ResetDataColors("gr_computers", &
      SeriesNbr, 10)

See also

GetDataStyle

GetSeriesStyle

SetDataStyle

SetSeriesStyle