SetFillColor()

Summary

Sets the color used to fill area features.

Syntax

SetFillColor(string lyr_set_name, color fill_color)

Argument Contents
lyr_set_name The name of the layer or selection set
fill_color The color used to fill the areas

Notes

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

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

  • SetFillColor() 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

SetFillColor("U.S. States|", ColorRGB(0, 0, 32000))
SetFillColor("U.S. States|Selection", ColorRGB(32000, 0, 0))

Error Codes

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

See Also

Function Summary
GetFillColor() Returns the color used to fill area features
SetFillStyle() Sets the style used to fill area features