ClassListCollection
Manages the collection of lists in a document, assigning unique IDs and tracking list definitions referenced by paragraphs.
Definition
Namespace:Telerik.Windows.Documents.Flow.Model.Lists
Assembly:Telerik.Windows.Documents.Flow.dll
Syntax:
public sealed class ListCollection : IEnumerable
Inheritance: objectListCollection
Implements:
Properties
Methods
Add(List)
Adds the specified list to the collection, assigning it a unique ID and associating it with the document.
Declaration
public void Add(List list)
Parameters
list
The list to add to the collection.
Add(ListTemplateType)
Creates a list from the specified predefined template, adds it to the collection, and returns the configured list.
Declaration
public List Add(ListTemplateType listTemplate)
Parameters
listTemplate
The list template.
Returns
The added list.
Clear()
Removes all lists from the collection and clears list references from all paragraphs and styles.
Declaration
public void Clear()
Contains(List)
Determines whether the specified list is present in this collection.
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<List> GetEnumerator()
Returns
IEnumerator<List>
A IEnumerator<T> that can be used to iterate through the collection.
GetList(int)
Retrieves the list with the specified ID, or null if no matching list exists.
Remove(List)
Removes the specified list and clears its references from all paragraphs and styles that use it.
Remove(int)
Removes the list with the specified ID and clears list references from all paragraphs and styles using it.