ListCollection

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

NameTypeAccessDescription
countintReadGets the count of numbered and bulleted lists in the document.
documentDocumentBaseReadGets the owner document.

Methods

SignatureDescription
iterator() → Iterator<List>Gets the enumerator object that will enumerate lists in the document.
add(listTemplate: int) → ListCreates a new list based on a predefined template and adds it to the collection of lists in the document.
addSingleLevelList(listTemplate: int) → ListCreates a new single level list based on the predefined template and adds it to the list collection in the document.
add(listStyle: Style) → ListCreates a new list that references a list style and adds it to the collection of lists in the document.
addCopy(srcList: List) → ListCreates a new list by copying the specified list and adding it to the collection of lists in the document.
getListByListId(listId: int) → ListGets a list by a list identifier.
getCount() → intGets the count of numbered and bulleted lists in the document.
get(index: int) → ListGets a list by index.
getDocument() → DocumentBaseGets the owner document.

See Also