SetLineStyle()
Summary
Sets the line style used to draw line features.
Syntax
SetLineStyle(string lyr_set_name, linestyle line_style)
| Argument | Contents |
|---|---|
| lyr_set_name | Name of the layer or selection set |
| line_style | The line style used to draw line features |
Notes
-
When used on a selection set, a null value for line_style indicates that lines of selected features should be drawn with the default line style for the layer.
-
If lyr_set_name is null, SetLineStyle() operates on the current layer.
Example
solid = LineStyle({{{1, -1, 0}}}),
dashed = LineStyle({{{1, -1, 0, 1, 2}}}),
SetLineStyle("Highways|", solid)
SetLineStyle("Highways|Construction", dashed)
Error Codes
| Error Type | Meaning |
|---|---|
| NotFound | The layer or selection set does not exist |
See Also
| Function | Summary |
|---|---|
| LineStyle() | Creates a new line style |
| GetLineStyle() | Gets the style used to draw line features |
| SetLineColor() | Sets the color used to draw line features |
| SetLineWidth() | Sets the line width used to draw line features |