SetBorderColor()

Summary

Sets the color used to draw the border of area features.

Syntax

SetBorderColor(string lyr_set_name, color border_color)

Argument Contents
lyr_set_name Name of the layer or selection set
border_color The color to use when drawing the border

Notes

  • When used on a selection set, a null value for border_color indicates that borders of selected features are drawn with the default border color for the layer.

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

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

SetBorderColor("U.S. States|", ColorRGB(0, 0, 32000))
SetBorderColor("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
GetBorderColor() Returns the color used to draw the border of area features
SetBorderStyle() Sets the line style used to draw the border of area features
SetBorderWidth() Sets the line width used to draw the border of area features