SetIconColor()

Summary

Sets the color used to draw point features.

Syntax

SetIconColor(string lyr_set_name, color icon_color)

Argument Contents
lyr_set_name The name of the layer or selection set
icon_color The color used to draw point features

Notes

  • When used on a selection set, a null value for icon_color indicates that the default value for the layer should be used.

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

  • SetIconColor() has no effect on bitmaps.

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

SetIconColor("Cities|", ColorRGB(50000,0,0))
SetIconColor("Cities|Capitals", ColorRGB(32000,32000,32000))

Error Codes

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

See Also

Function Summary
GetIconColor() Gets the color used to draw point features
SetIcon() Sets the font and character or bitmap used to draw point features
SetIconSize() Sets the point size of symbols used to draw point features