ListFormat
Overview
ListFormat is a class in Aspose.Words FOSS for Java.
Allows to control what list formatting is applied to a paragraph.
Edition status of its 15 listed members (a property and its accessor methods are listed separately, overloads once): 15 not yet exercised by a verified example.
This class declares 11 methods for ListFormat objects in Java programs.
Available methods include: applyBulletDefault, applyNumberDefault, getList, getListLevel, getListLevelNumber, isListItem, listIndent, listOutdent, removeNumbers, setList, setListLevelNumber.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: list, listItem, listLevel, listLevelNumber.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
listLevelNumber | int | Read/Write | Gets or sets the list level number (0 to 8) for the paragraph. |
listItem | boolean | Read | True when the paragraph has bulleted or numbered formatting applied to it. |
list | List | Read/Write | Gets or sets the list this paragraph is a member of. |
listLevel | ListLevel | Read | Gets the list level. |
Methods
| Signature | Description |
|---|---|
applyBulletDefault() | Starts a new default bulleted list and applies it to the paragraph. |
applyNumberDefault() | Starts a new default numbered list and applies it to the paragraph. |
removeNumbers() | Removes numbers or bullets from the current paragraph and sets list level to zero. |
listIndent() | Increases the list level of the current paragraph by one level. |
listOutdent() | Decreases the list level of the current paragraph by one level. |
getListLevelNumber() → int | Gets or sets the list level number (0 to 8) for the paragraph. |
setListLevelNumber(value: int) | Sets the list level number value. |
isListItem() → boolean | True when the paragraph has bulleted or numbered formatting applied to it. |
getList() → List | Gets or sets the list this paragraph is a member of. |
setList(value: List) | Sets the list value. |
getListLevel() → ListLevel | Returns the list level. |