| Maptitude GISDK Help |
Sets the color used to fill area features.
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 |
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.
SetFillColor("U.S. States|", ColorRGB(0, 0, 32000))
SetFillColor("U.S. States|Selection", ColorRGB(32000, 0, 0))
| Error Type | Meaning |
|---|---|
| NotFound | The layer or selection set does not exist |
| Function | Summary |
|---|---|
| GetFillColor() | Returns the color used to fill area features |
| SetFillStyle() | Sets the style used to fill area features |
| ©2025 Caliper Corporation | www.caliper.com |