]> source.dussan.org Git - poi.git/commitdiff
Add method to return the number of styles (bug #43883)
authorNick Burch <nick@apache.org>
Fri, 16 Nov 2007 15:25:55 +0000 (15:25 +0000)
committerNick Burch <nick@apache.org>
Fri, 16 Nov 2007 15:25:55 +0000 (15:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@595701 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/model/StyleSheet.java

index 77c01038246893583a293f341365d4bccd34a422..b23533de34dbd3084edd577b6b32740de630131e 100644 (file)
@@ -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.
    *