SetFillStyle()

Summary

Sets the style used to fill area features.

Syntax

SetFillStyle(string lyr_set_name, fillstyle fill_style)

Argument Contents
lyr_set_name The name of the layer or selection set
fill_style The fill style used to fill areas

Notes

  • When used on a selection set, a null value for fill_style indicates that selected features are drawn with the default fill style for the layer.

  • If lyr_set_name is null, SetFillStyle() operates on the current layer.

  • SetFillStyle() normally operates on the current map. You can force it to operate on a different map by including the map name in lyr_set_name. For instance, "Map1|LayerA|" affects the display of LayerA in Map1.

Example

str1 = "XXXXXXXX"
str2 = " "
solid = FillStyle({str1, str1, str1, str1, str1, str1, str1, str1})
empty = FillStyle({str2, str2, str2, str2, str2, str2, str2, str2})
SetFillStyle ("U.S. States|", empty)
SetFillStyle ("U.S. States|Selection", solid)

Error Codes

Error Type Meaning
NotFound The layer or selection set does not exist

See Also

Function Summary
FillStyle() Creates a new fill style
GetFillStyle() Returns the style used to fill area features
SetFillColor() Sets the color used to fill area features