Browse Source

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
tags/REL_3_0_2_BETA1
Nick Burch 16 years ago
parent
commit
6297f86323
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      src/scratchpad/src/org/apache/poi/hwpf/model/StyleSheet.java

+ 8
- 0
src/scratchpad/src/org/apache/poi/hwpf/model/StyleSheet.java View 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.
*

Loading…
Cancel
Save