From 6297f86323c699896c8f922aafd5e1a0011afc9a Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Fri, 16 Nov 2007 15:25:55 +0000 Subject: [PATCH] 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 --- .../src/org/apache/poi/hwpf/model/StyleSheet.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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. * -- 2.39.5