Package | Description |
---|---|
org.apache.poi.xwpf.usermodel |
Modifier and Type | Method and Description |
---|---|
XWPFStyle |
XWPFStyles.getStyle(java.lang.String styleID)
Get style by a styleID
|
XWPFStyle |
XWPFStyles.getStyleWithName(java.lang.String styleName)
Get the style with the specified name, if any.
|
XWPFStyle |
XWPFStyles.getStyleWithSameName(XWPFStyle style)
get the style with the same name
if this style is not existing, return null
|
Modifier and Type | Method and Description |
---|---|
java.util.List<XWPFStyle> |
XWPFStyles.getUsedStyleList(XWPFStyle style)
get the styles which are related to the parameter style and their relatives
this method can be used to copy all styles from one document to another document
|
Modifier and Type | Method and Description |
---|---|
void |
XWPFStyles.addStyle(XWPFStyle style)
add a style to the document
|
XWPFStyle |
XWPFStyles.getStyleWithSameName(XWPFStyle style)
get the style with the same name
if this style is not existing, return null
|
java.util.List<XWPFStyle> |
XWPFStyles.getUsedStyleList(XWPFStyle style)
get the styles which are related to the parameter style and their relatives
this method can be used to copy all styles from one document to another document
|
boolean |
XWPFStyle.hasSameName(XWPFStyle compStyle)
compares the names of the Styles
|
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.