ListCollection

ListCollection

Overview

ListCollection is a class in Aspose.Words FOSS for .NET. Inherits from: IEnumerable<List>.

Stores and manages formatting of bulleted and numbered lists used in a document.

This class provides 6 methods for working with ListCollection objects in .NET programs. Available methods include: Add, AddCopy, AddSingleLevelList, GetEnumerator, GetListByListId. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: Count, Document.

Properties

NameTypeAccessDescription
CountintReadGets the count of numbered and bulleted lists in the document.
DocumentDocumentBaseReadGets the owner document.

Methods

SignatureDescription
GetEnumerator()Gets the enumerator object that will enumerate lists in the document.
Add(listTemplate: ListTemplate)Creates a new list and adds it to the collection of lists in the document.
AddSingleLevelList(listTemplate: ListTemplate)Creates a new single level list based on the predefined template and adds it to the list collection in the document.
Add(listStyle: Style)Creates a new list that references a list style and adds it to the collection of lists in the document.
AddCopy(srcList: List)Creates a new list by copying the specified list and adding it to the collection of lists in the document.
GetListByListId(listId: int)Gets a list by a list identifier.

See Also