diff --git a/src/scratchpad/src/org/apache/poi/hslf/usermodel/RichTextRun.java b/src/scratchpad/src/org/apache/poi/hslf/usermodel/RichTextRun.java index fe0375507..b250285ac 100644 --- a/src/scratchpad/src/org/apache/poi/hslf/usermodel/RichTextRun.java +++ b/src/scratchpad/src/org/apache/poi/hslf/usermodel/RichTextRun.java @@ -424,6 +424,15 @@ public class RichTextRun { return paragraphStyle == null ? 0 : paragraphStyle.getReservedField(); } + /** + * Sets indentation level + * + * @param level indentation level. Must be in the range [0, 5] + */ + public void setIndentLevel(int level) { + if(paragraphStyle != null ) paragraphStyle.setReservedField((short)level); + } + /** * Sets whether this rich text run has bullets */