GetThemeClasses()
Summary
Gets information about the classes of a color or pattern theme.
Syntax
info = GetThemeClasses(string theme_name)
| Argument |
Contents |
| theme_name |
the name of the theme |
Returns
The following information about the theme classes:
| Element |
Type |
Contents |
| 1 |
Array |
An array of class labels (strings), starting with the label for the Other class (if it exists) and followed by the labels for the remaining classes |
| 2 |
Array |
An array of class value definitions; this could be an array of strings; an array of real numbers, or an array of {real low_value, boolean low_inclusive, real hi_value, boolean hi_inclusive}. No definition is provided for the Other class |
| 3 |
Array |
An array of integers indicating the number of features in each class, starting with the count for the Other class (if it exists) and followed by the counts for the remaining classes |
Example
cls_info = GetThemeClasses("some theme")
// cls_info = {
// {"Other", "Low", "Medium", "High"},
// {"Low", "Medium", "High"},
// {22, 50, 86, 42}
// }
Error Codes
| Error |
Meaning |
| NotFound |
The specified theme does not exist |
See Also