MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
INT32 MgLayer::GetThemeCategoryCount ( double  scale,
INT32  geomType 
)

Gets the number of theme categories for this layer at the map's current scale for the given geometry type style. A count greater than 1 indicates a themed layer. Returns -1 if there are no applicable styles at the current scale.

.NET Syntax
virtual int GetThemeCategoryCount(double scale, int geomType);
Java Syntax
virtual int GetThemeCategoryCount(double scale, int geomType);
PHP Syntax
virtual int GetThemeCategoryCount(double scale, int geomType);
Parameters:
scale(double) The scale at which to count the number of applicable theme categories
geomType(int) The geometry type
Remarks:
When geomType = 4, it will only count the number of the theme categories for the first composite style it finds. For a scale range with multiple composite type styles, you should use GetCompositeThemeCategoryCount() instead
Returns:
The number of theme categories for this layer at the map's current scale for the given geometry type style. A count greater than 1 indicates a themed layer. Returns -1 if there are no applicable styles at the current scale
Since:
3.0