diff options
author | Nick Burch <nick@apache.org> | 2007-11-16 15:25:55 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2007-11-16 15:25:55 +0000 |
commit | 6297f86323c699896c8f922aafd5e1a0011afc9a (patch) | |
tree | cbab97eccfb60753fd054fc4ac4ff98cec72cada | |
parent | c31f71a851e5ec5c59bc5f6362bf4f80b4a6597e (diff) | |
download | poi-6297f86323c699896c8f922aafd5e1a0011afc9a.tar.gz poi-6297f86323c699896c8f922aafd5e1a0011afc9a.zip |
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
-rw-r--r-- | src/scratchpad/src/org/apache/poi/hwpf/model/StyleSheet.java | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ -286,6 +286,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. * * @param x the index of the desired StyleDescription. |