[]
        
(Showing Draft Content)

GrapeCity.Documents.Common.ReadOnlyListWrapper-2

ReadOnlyListWrapper<TItem, TWrapperItem> Class

The read-only list wrapper around the IList<T>.

Inheritance
ReadOnlyListWrapper<TItem, TWrapperItem>
Implements
IReadOnlyList<TWrapperItem>
IReadOnlyCollection<TWrapperItem>
IEnumerable<TWrapperItem>
Namespace: GrapeCity.Documents.Common
Assembly: DS.Documents.Imaging.dll
Syntax
public class ReadOnlyListWrapper<TItem, TWrapperItem> : IReadOnlyList<TWrapperItem>, IReadOnlyCollection<TWrapperItem>, IEnumerable<TWrapperItem>, IEnumerable where TItem : class where TWrapperItem : class, TItem
Public Class ReadOnlyListWrapper(Of TItem As Class, TWrapperItem As {Class, TItem})
    Implements IReadOnlyList(Of TWrapperItem), IReadOnlyCollection(Of TWrapperItem), IEnumerable(Of TWrapperItem), IEnumerable
Type Parameters
Name Description
TItem

The item type of the underlying list.

TWrapperItem

The item type.

Properties

Name Description
Count

Gets the number of elements contained in the collection.

this[int]

Gets or sets the element at the specified index.

Methods

Name Description
Contains(TWrapperItem)

Determines whether an element is in the collection.

CopyTo(TItem[], int)

Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array.

IndexOf(TWrapperItem)

Searches for the specified object and returns the zero-based index of the first occurrence within the entire collection.