diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/StyleSheet.java b/src/scratchpad/src/org/apache/poi/hwpf/model/StyleSheet.java index 77c010382..b23533de3 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/model/StyleSheet.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/model/StyleSheet.java @@ -285,6 +285,14 @@ public class StyleSheet implements HDFType } } + /** + * Gets the number of styles in the style sheet. + * @return The number of styles in the style sheet. + */ + public int numStyles() { + return _styleDescriptions.length; + } + /** * Gets the StyleDescription at index x. *