瀏覽代碼

Return and set paragraph indentation level

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876406 13f79535-47bb-0310-9956-ffa450edef68
tags/before_ooxml_3rd_edition
Alain Béarez 4 年之前
父節點
當前提交
a9ec119c40
共有 1 個檔案被更改,包括 26 行新增0 行删除
  1. 26
    0
      src/ooxml/java/org/apache/poi/xddf/usermodel/text/XDDFTextParagraph.java

+ 26
- 0
src/ooxml/java/org/apache/poi/xddf/usermodel/text/XDDFTextParagraph.java 查看文件

@@ -171,6 +171,32 @@ public class XDDFTextParagraph {
return run;
}

/**
* Returns the paragraph indentation level.
*
* @return indentation level of the paragraph.
*/
public int getIndentationLevel() {
if (_p.isSetPPr()) {
return getProperties().getLevel();
} else {
return 0;
}
}

/**
* Specifies the paragraph indentation level, between 1 and 9.
*
* @param level
* new indentation level for the paragraph.
* Use <code>null</code> to unset the indentation level.
*/
public void setIndentationLevel(Integer level) {
if (_p.isSetPPr()) {
getProperties().setLevel(level);
}
}

/**
* Returns the alignment that is applied to the paragraph.
*

Loading…
取消
儲存