From: Nick Burch Date: Fri, 16 Nov 2007 15:25:55 +0000 (+0000) Subject: Add method to return the number of styles (bug #43883) X-Git-Tag: REL_3_0_2_BETA1~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6297f86323c699896c8f922aafd5e1a0011afc9a;p=poi.git Add method to return the number of styles (bug #43883) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@595701 13f79535-47bb-0310-9956-ffa450edef68 --- 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 77c0103824..b23533de34 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. *