[]
        
(Showing Draft Content)

C1.WPF.Document.C1KeyedList-2

C1KeyedList<TKey, TItem> Class

Represents the pages of document.

Inheritance
C1KeyedList<TKey, TItem>
Implements
IList<TItem>
Namespace: C1.WPF.Document
Assembly: C1.WPF.Document.4.6.2.dll
Syntax
public class C1KeyedList<TKey, TItem> : IList<TItem>, ICollection<TItem>, IEnumerable<TItem>, IEnumerable where TKey : IComparable<TKey> where TItem : IC1KeyedItem<TKey>
Type Parameters
Name Description
TKey

The type of key.

TItem

The page item type.

Constructors

Name Description
C1KeyedList()

Properties

Name Description
Count

Gets the number of elements contained in the C1KeyedList<TKey, TItem>.

Methods

Name Description
Add(TItem)

Adds the item to document pages.

Clear()

Removes all elements from the C1KeyedList<TKey, TItem>.

GetByIndex(int)

Gets the page item by specified index.

IndexOf(TItem)

Gets the index of the specified page in the document.

RemoveAt(int)

Removes the element at the specified index of the C1KeyedList<TKey, TItem>.

TryGetValue(TKey, out TItem)

Gets the page by specified key.