Syntax 2 For the line style and width used by a series
Description
Obtains the line style and width for a series in a graph.
Controls
PowerBuilder DataWindow DataWindow
control
DataWindow Web ActiveX DataWindow
control
Syntax
[PowerBuilder]
1 |
integer <span>dwcontrol</span>.<span>GetSeriesStyle</span> ( string <span>graphcontrol</span>, string <span>seriesname</span>, REF LineStyle <span>linestyle</span> {, REF integer <span>linewidth</span> } ) |
[Web ActiveX]
1 |
number <span>dwcontrol</span>.<span>GetSeriesStyleLine</span> ( string <span>graphcontrol</span>, string <span>seriesname</span> ) |
Argument |
Description |
---|---|
dwcontrol |
A reference to the DataWindow control |
graphcontrol |
A string whose value is the name of the |
seriesname |
A string whose value is the name of the |
linestyle |
In PowerBuilder, a variable of type LineStyle |
linewidth (optional) |
In PowerBuilder, an integer variable |
Return Values
Returns 1 if it succeeds and -1 if an error occurs. In PowerBuilder,
stores in linestyle a value of the LineStyle
enumerated datatype and in linewidth the width
of the line used for the specified series. If any argument’s
value is null, GetSeriesStyle returns null.
Examples
These statements store in the variables line_style
and line_width the line style and width for the series
under the mouse pointer in the graph gr_product_data:
1 |
string SeriesName |
1 |
integer SeriesNbr, Data_Point, line_width |
1 |
LineStyle line_style |
1 |
grObjectType MouseHit |
1 |
1 |
MouseHit = dw_equipment.ObjectAtPointer & |
1 |
("gr_product_data", SeriesNbr, Data_Point) |
1 |
1 |
IF MouseHit = TypeSeries! THEN |
1 |
SeriesName = & |
1 |
dw_equipment.SeriesName("gr_product_data", & |
1 |
SeriesNbr) |
1 |
1 |
dw_equipment.<span>GetSeriesStyle</span> ("gr_product_data", & |
1 |
SeriesName, line_style, line_width) |
1 |
END IF |