[]
        
(Showing Draft Content)

C1.DataCollection.C1SpanDataCollection-1

C1SpanDataCollection<T> Class

This collection is a portion of another collection.

Inheritance
C1SpanDataCollection<T>
Namespace: C1.DataCollection
Assembly: C1.DataCollection.dll
Syntax
public class C1SpanDataCollection<T> : C1WrapDataCollection<T>, IDataCollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged, ISupportIndexing<T>, INotifyPropertyChanged, IDisposable, ISupportSorting, ISupportFiltering, ISupportGrouping, ISupportVirtualization, ISupportConnection, ISupportAsyncLoading<T>, ISupportIncrementalLoading, ISupportRefreshing, ISupportRangeEditing<T>, ISupportEditing<T>, ISupportCreateNewItem<T>, ISupportPaging, ISupportSource where T : class?
Type Parameters
Name Description
T
Remarks

The bounds of the collection are specified through the method .

Constructors

Name Description
C1SpanDataCollection(IEnumerable)

Initializes a new instance of the C1SpanDataCollection<T> class.

Properties

Name Description
Count

Gets the number of items in this collection.

this[int]

Gets the item at the specified position.

Length

Gets the maximum number of items that can be in the collection.

Start

Gets the index in the underlying collection where this collection starts.

TotalCount

Gets the total count of items in the underlying collection.

Methods

Name Description
CanInsert(int, T)

Determines whether a new item can be inserted in the collection at the specified index.

CanMove(int, int)

Determines whether the item at fromIndex can be moved to toIndex.

CanRemove(int)

Determines whether the item at the specified index can be removed from the collection.

CanReplace(int, T)

Determines whether the item at the specified index can be replaced in the collection.

IndexOf(T)

Gets the index of the specified item.

InsertAsync(int, T, CancellationToken)

Inserts the specified item at the specified index in the collection.

MoveAsync(int, int, CancellationToken)

Moves an item from the specified fromIndex to toIndex.

OnSourceCollectionChanged(object?, NotifyCollectionChangedEventArgs)

Called when the source collection changed.

RemoveAsync(int, CancellationToken)

Removes the item at the specified index from the collection.

ReplaceAsync(int, T, CancellationToken)

Replaces the item at the specified index by the specified item.

Slice(int, int?)

Specifies the bounds of the collection.

Extension Methods