GetLineColor()

Summary

Gets the color used to draw line features.

Syntax

clr = GetLineColor(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

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

Example

clr = GetLineColor("Highways|")
sel_clr = GetLineColor("Highways|Selection")

Error Codes

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

See Also

Function Summary
SetLineColor() Sets the color used to draw line features
GetLineWidth() Gets the width used to draw line features
GetLineStyle() Gets the style used to draw line features