SetThemeFillStyles()

Summary

Sets the fill styles used to draw a theme.

Syntax

SetThemeFillStyles(string theme_name, array fillstyles)

Argument Contents
theme_name The name of the theme
fillstyles An array of fill styles

Notes

  • SetThemeFillStyles() assigns the first fill style in the array to the Other class, if it exists.

  • If there are fewer fill styles in the array than classes in the theme, SetThemeFillStyles() reuses the fill styles from the beginning of the list until all classes have a fill style. If there is an Other class, however, it uses the first fill style only once.

  • A null in the array indicates that the default fill style for the layer is used.

Example

str1 = "XXXXXXXX"
str2 = " "
solid = FillStyle({str1, str1, str1, str1, str1, str1, str1, str1})
empty = FillStyle({str2, str2, str2, str2, str2, str2, str2, str2})
style_list = {empty, solid}
SetThemeFillStyles("Household Income", style_list)

Error Codes

Error Type Meaning
NotFound No theme exists with the given name

See Also

Function Summary
GetThemeFillStyles() Gets the list of fill styles that are used to draw a theme
SetThemeFillColors() Sets the fill colors used to draw a theme
FillStyle() Creates a new fill style
SetFillStyle() Sets the style used to fill area features