MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
INT32 MgLayer::GetThemeCategoryCount ( 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(int geomType);
Java Syntax
virtual int GetThemeCategoryCount(int geomType);
PHP Syntax
virtual int GetThemeCategoryCount(int geomType);
Parameters:
geomType(int) The geometry type
Remarks:
The map's current scale is used to determine what scale range in the layer definition to search for. 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