ListCollection
Overview
ListCollection is a class in Aspose.Words FOSS for Java.
Inherits from: Iterable<List>, Cloneable.
Stores and manages formatting of bulleted and numbered lists used in a document.
Edition status of its 10 listed members (a property and its accessor methods are listed separately, overloads once): 10 not yet exercised by a verified example.
This class declares 9 methods for ListCollection objects in Java programs.
Available methods include: add, addCopy, addSingleLevelList, get, getCount, getDocument, getListByListId, iterator.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: count, document.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
count | int | Read | Gets the count of numbered and bulleted lists in the document. |
document | DocumentBase | Read | Gets the owner document. |
Methods
| Signature | Description |
|---|---|
iterator() → Iterator<List> | Gets the enumerator object that will enumerate lists in the document. |
add(listTemplate: int) → List | Creates a new list based on a predefined template and adds it to the collection of lists in the document. |
addSingleLevelList(listTemplate: int) → List | Creates a new single level list based on the predefined template and adds it to the list collection in the document. |
add(listStyle: Style) → List | Creates a new list that references a list style and adds it to the collection of lists in the document. |
addCopy(srcList: List) → List | Creates a new list by copying the specified list and adding it to the collection of lists in the document. |
getListByListId(listId: int) → List | Gets a list by a list identifier. |
getCount() → int | Gets the count of numbered and bulleted lists in the document. |
get(index: int) → List | Gets a list by index. |
getDocument() → DocumentBase | Gets the owner document. |