GetThemeClassCounts()
Summary
Gets the number of features in each class of a color or pattern theme.
Syntax
counts = GetThemeClassCounts(string theme_name)
| Argument | Contents |
|---|---|
| theme_name | The name of the theme |
Returns
An array of integers indicating the number of features in each class. The first value is the number of features in the Other class (if it exists), followed by the counts for the regular classes.
Example
cls_n = GetThemeClassCounts("some theme")
// cls_info = {22, 50, 86, 42}
Error Codes
| Error | Meaning |
|---|---|
| NotFound | The specified theme does not exist |
See Also
| Function | Summary |
|---|---|
| GetThemeClasses() | Gets information about the classes of a class theme |
| GetThemeClassLabels() | Gets the class labels of a class theme |
| GetThemeClassValues() | Gets the class definitions of a class theme |
| GetTheme() | Gets information about a theme |