Class ListCollection
Represents dynamic collection of lists.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Flow.Model.Lists
Assembly: Telerik.Windows.Documents.Flow.dll
Syntax
public sealed class ListCollection : IEnumerable<List>, IEnumerable
Properties
Count
Gets the number of lists contained in the collection.
Declaration
public int Count { get; }
Property Value
System.Int32
The number of lists contained in the collection. |
Methods
Add(List)
Adds an list to the collection.
Declaration
public void Add(List list)
Parameters
List
list
The list to add to the collection. |
Add(ListTemplateType)
Adds list according to the list template parameter.
Declaration
public List Add(ListTemplateType listTemplate)
Parameters
ListTemplateType
listTemplate
The list template. |
Returns
List
The added list. |
Clear()
Removes all lists from the collection.
Declaration
public void Clear()
Contains(List)
Determines whether the collection contains a specific item.
Declaration
public bool Contains(List list)
Parameters
List
list
The item to locate in the collection. |
Returns
System.Boolean
|
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<List> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<List>
A System.Collections.Generic.IEnumerator<T> that can be used to iterate through the collection. |
Implements
GetList(Int32)
Gets the list.
Declaration
public List GetList(int id)
Parameters
System.Int32
id
The id. |
Returns
List
|
Remove(Int32)
Removes the specified list by list id.
Declaration
public bool Remove(int listId)
Parameters
System.Int32
listId
The list id. |
Returns
System.Boolean
|
Remove(List)
Removes the first occurrence of a specific object from the collection.
Declaration
public bool Remove(List list)
Parameters
List
list
The list to remove from the collection. |
Returns
System.Boolean
|
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Returns an enumerator that iterates through a collection.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator
An System.Collections.IEnumerator object that can be used to iterate through the collection. |