SetLineColor()

Summary

Sets the color used to draw line features.

Syntax

SetLineColor(string lyr_set_name, color line_color)

Argument Contents
lyr_set_name Name of the layer or selection set
line_color The color to use when drawing the line feature

Notes

  • When used on a selection set, a null value for line_color indicates that lines of selected features should be drawn with the default line color of the layer.

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

Example

SetLineColor("Highways|", ColorRGB(0, 0, 32000))
SetLineColor("Highways|Selection", ColorRGB(32000, 0, 0))

Error Codes

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

See Also

Function Summary
GetLineColor() Gets the color used to draw line features
SetLineStyle() Sets the line style used to draw line features
SetLineWidth() Sets the line width used to draw line features