| Maptitude GISDK Help |
Change the label for a class in a color, pattern, dot, or chart theme.
SetThemeClassLabel(string theme_name, string label, integer index)
| Argument | Contents |
|---|---|
| theme_name | The name of the theme |
| label | The new class label |
| index | The class index; use 1 for the other class if it exists |
SetThemeClassLabel() changes the labels that are used in the map legend to identify classes in a theme.
The original labels are generated automatically.
thm = CreateTheme("Population Theme", "State|.Population", "Quantiles", 3, )
SetThemeClassLabel(thm, "No Data Available", 1)
SetThemeClassLabel(thm, "Low", 2)
SetThemeClassLabel(thm, "Medium", 3)
SetThemeClassLabel(thm, "High", 4)
| Error | Meaning |
|---|---|
| NotFound | The specified theme does not exist |
| Error | Index is larger than the total number of classes or less than one |
| Function | Summary |
|---|---|
| GetThemeClassLabels() | Gets the class labels of a color or pattern theme |
| SetThemeClassLabels() | Changes the labels for classes in a color, pattern, dot, or chart theme |
| GetThemeClasses() | Gets information about the classes of a color or pattern theme |
| GetTheme() | Gets information about a theme |
| ©2025 Caliper Corporation | www.caliper.com |