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

Gets the number of composite theme categories for this layer at the map's current scale for the given composite 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
compositeOffset(int) The zero-based index denoting the particular composite style to count from. 0 = 1st composite style, 1 = 2nd composite style
Returns:
The number of theme categories for this layer at the map's current scale for the given composite 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