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.
Applies to
Graph controls in windows and user objects, and graphs in
DataWindow controls
Syntax
|
1 |
controlname.GetSeriesStyle ( { graphcontrol, } seriesname, linestyle, linewidth ) |
|
Argument |
Description |
|---|---|
|
controlname |
The name of the graph for which you want the line style |
|
graphcontrol (DataWindow control only) |
(Optional) A string whose value is the name of the graph |
|
seriesname |
A string whose value is the name of the series for which |
|
linestyle |
A variable of type LineStyle in which you want to store |
|
linewidth |
An integer variable in which you want to store the line |
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs. 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 2 3 4 5 6 7 8 9 10 11 12 13 14 |
string SeriesName integer SeriesNbr, Data_Point, line_width LineStyle line_style grObjectType MouseHit MouseHit = ObjectAtPointer(SeriesNbr, Data_Point) IF MouseHit = TypeSeries! THEN SeriesName = & gr_product_data.SeriesName(SeriesNbr) gr_product_data.GetSeriesStyle(SeriesName, & line_style, line_width) END IF |
See also