SetThemeLineColors()

Summary

Sets the line colors used to draw a theme.

Syntax

SetThemeLineColors(string theme_name, array colors)

Argument Contents
theme_name The name of the theme
colors An array of colors

Notes

  • SetThemeLineColors() assigns the first color in the array to the Other class, if it exists.

  • If there are fewer colors in the array than classes in the theme, SetThemeLineColors() reuses the colors from the beginning of the array until all classes have a color. If there is an Other class, it uses the first color only once.

  • A null in the array indicates that the default line color for the layer is used.

Example

clrs = GeneratePalette(ColorRGB(65000, 0, 0), ColorRGB(0, 65000, 0), 10, )
SetThemeLineColors("Traffic", clrs)

Error Codes

Error Type Meaning
NotFound No theme exists with the specified name

See Also

Function Summary
GetThemeLineColors() Gets the list of line colors that are used to draw a theme
SetThemeLineWidths() Sets the line widths used to draw a theme
SetThemeLineStyles() Sets the line styles used to draw a theme
SetLineColor() Sets the color used to draw line features