GetFillColor()

Summary

Returns the color used to fill area features.

Syntax

c = GetFillColor(string lyr_set_name)

Argument Contents
lyr_set_name The name of the layer or selection set

Returns

A color (red, green, blue, and alpha).

Notes

  • GetFillColor() returns null if called on a selection set that does not have a defined fill color.

Example

// Make States use the same fill color as Counties...
SetFillColor("States|", GetFillColor("Counties|"))

Error Codes

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

See Also

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