public class IndentRichStyle extends RichStyle
RichText
content to indent each line in a paragraph.RichText.setRichStyle(RichStyle, int, int, RangedRichStyle.Flag)RichStyle.Capability, RichStyle.TypeId| 构造器 | 说明 |
|---|---|
IndentRichStyle(List<Integer> indents) |
A constructor used to create a
IndentRichStyle instance based on the specified indents list. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
List<Integer> |
getIndents() |
Obtains the
indents list. |
void |
setIndents(List<Integer> indents) |
Sets the
indents list. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCapability, getRichStyleTypeIdpublic IndentRichStyle(List<Integer> indents)
IndentRichStyle instance based on the specified indents list.indents - Indicates the distance you want to indent each line of the paragraph. If the number of lines in
the paragraph exceeds the specified list length, the last element of the list is used for excess lines.IllegalArgumentException - Throws this exception if indents is null or the list length is
0.