SetLayerSetsLabel()

Summary

Changes the label used in the legend for the list of sets belonging to a layer.

Syntax

SetLayerSetsLabel(string layer_name, string sets_label, string flag)

Argument Contents
layer_name The name of the layer
sets_label The new label for the collection of sets
flag "True" to show the label in the legend, otherwise "False"

Notes

  • The legend normally creates this label automatically (e.g., County Selection Sets).

  • SetLayerSetsLabel() affects all open maps that contain the layer.

Example

SetLayerSetsLabel(GetMap() + "|" + GetLayer(), "My Selection Sets", "True")

Error Codes

Error Type Meaning
Error The layer_name is invalid
NotFound There is no layer with the specified name

See Also

Function Summary
GetLayerSetsLabel() Returns the label used in the legend for the list of sets belonging to a layer