Description
Obtains the fill pattern of a series in a graph.
Applies to
PowerBuilder DataWindow
DataWindow control
Syntax
PowerBuilder
integer dwcontrol.GetSeriesStyle ( string graphcontrol, string seriesname, REF FillPattern fillvariable )
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 style information. |
fillvariable |
In PowerBuilder, a variable of type FillPattern in which you want to store the fill pattern value. For a list of values, see FillPattern. |
Return value
Returns 1 if it succeeds and -1 if an error occurs. In PowerBuilder, stores in fillvariable identifying the fill pattern for the specified series. If any argument's value is null, GetSeriesStyle returns null.
Examples
This example stores in the variable data_pattern the fill pattern for the series under the pointer in the graph gr_depts in the DataWindow control dw_employees. It then sets the fill pattern for the series Total Salary in the graph gr_dept_data to that pattern:
string SeriesName integer SeriesNbr, Data_Point FillPattern data_pattern grObjectType MouseHit MouseHit = dw_employees.ObjectAtPointer("gr_depts" , & SeriesNbr, Data_Point) IF MouseHit = TypeSeries! THEN SeriesName = & dw_employees.SeriesName("gr_depts" , SeriesNbr) dw_employees.GetSeriesStyle("gr_depts" , & SeriesName, data_pattern) gr_dept_data.SetSeriesStyle("Total Salary", & data_pattern) END IF
See also