SetThemeLineWidths()
Summary
Sets the line widths used to draw a theme.
Syntax
SetThemeLineWidths(string theme_name, array linewidths)
| Argument | Contents |
|---|---|
| theme_name | The name of the theme |
| linewidths | An array of line widths |
Notes
-
SetThemeLineWidths() assigns the first line width in the array to the Other class if it exists.
-
If there are fewer line widths in the array than classes in the theme, SetThemeLineWidths() reuses the line widths from the beginning of the array until all classes have a width. If there is an Other class, it uses the first line width only once.
-
A null in the array indicates that the default line width for the layer is used.
Example
lw_array = {1.0, 2.0, 3.0, 4.0, 5.0}
SetThemeLineWidths("Traffic", lw_array)
Error Codes
| Error Type | Meaning |
|---|---|
| NotFound | No theme exists with the specified name |
See Also
| Function | Summary |
|---|---|
| GetThemeLineWidths() | Gets the list of line widths that are used to draw a theme |
| SetThemeLineColors() | Sets the line colors used to draw a theme |
| SetThemeLineStyles() | Sets the line styles used to draw a theme |
| SetLineWidth() | Sets the line width used to draw line features |