Maptitude GISDK Help |
Gets the label expression for a layer or selection set.
expression = GetLabelExpression(string lyr_set_name)
Argument |
Contents |
lyr_set_name |
The name of the layer or selection set |
A string containing the field name or expression whose result is used as the label.
GetLabelExpression() will get the last label expression used, even if the label visibility is Off. You can test for the label visibility:
{visible} = GetLabelOptions(lyr_set_name, {"Visibility"})
if visible then
ShowMessage("Using label " + GetLabelExpression(lyr_set_name))
else
ShowMessage("Not using labels.")
SetLabels("U.S. States", "Population/Area", {
{"Font", "Arial|Bold|16"},
{"Color", ColorRGB(50000,50000,0)},
{"Priority", "Population"}
})
x = GetLabelExpression("U.S. States|") // x = "Population/Area"
Error Type |
Meaning |
NotFound |
The specified layer or selection set does not exist, or a label expression has never been used on the layer |
Function |
Summary |
Enables or disables labeling for a layer or selection set |
|
Gets the label option settings for a layer or selection set |
©2025 Caliper Corporation | www.caliper.com |