C# Класс System.Windows.Data.DataList

An object that abstracts a collection of items and various capabilities of different collection interfaces.
Наследование: IIndexableCollection, IEditableCollection, IPageableCollection, INotifyPropertyChanged, INotifyCollectionChanged
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AddItem void
DataList System
EnsureSnapShot void
IEditableCollection object
IEditableCollection void
IEnumerable IEnumerator
IPageableCollection IEnumerable
OnSourceCollectionChanged void
RaiseCollectionChanged void
RaiseCollectionReset void
RaisePropertyChanged void
RemoveItem void
RemoveItem void
UpdateVersion void
VerifyValidItem void
this objectIIndexableCollection.System

Открытые методы

Метод Описание
DataList ( IEnumerable data ) : System

Creates an instance of a DataList from the specified underlying data.

DataList ( IEnumerable data, Type itemType ) : System

Creates an instance of a DataList from the specified underlying data, and supplies the item type that goes into the list.

DataList ( IEnumerable data, bool enableCurrency ) : System

Creates an instance of a DataList from the specified underlying data.

MoveNext ( ) : void

Moves the current index forward.

MovePrevious ( ) : void

Moves the current index back.

MoveToItem ( object item ) : void

Sets the current item to the specified item.

UpdateFilter ( IPredicate predicate ) : void

Sets the predicate to use to filter the items contained in this DataList.

UpdateSort ( IComparer comparer ) : void

Sets the comparer to use to sort the items contained in this DataList.

this ( int index ) : object

Gets the item at the specified index within the underlying data.

Приватные методы

Метод Описание
AddItem ( object item, bool notifyPropertyChange ) : void
DataList ( IEnumerable data, bool enableCurrency, Type itemType ) : System
EnsureSnapShot ( ) : void
IEditableCollection ( ) : object
IEditableCollection ( object item ) : void
IEnumerable ( ) : IEnumerator
IPageableCollection ( int pageIndex, int pageSize ) : IEnumerable
OnSourceCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
RaiseCollectionChanged ( NotifyCollectionChangedAction action, object item, int index ) : void
RaiseCollectionReset ( ) : void
RaisePropertyChanged ( string propertyName ) : void
RemoveItem ( object item, bool notifyPropertyChange ) : void
RemoveItem ( object item, int index, bool notifyPropertyChange ) : void
UpdateVersion ( ) : void
VerifyValidItem ( object item ) : void
this ( int index ) : objectIIndexableCollection.System

Описание методов

DataList() публичный Метод

Creates an instance of a DataList from the specified underlying data.
public DataList ( IEnumerable data ) : System
data IEnumerable The underlying data to abstract.
Результат System

DataList() публичный Метод

Creates an instance of a DataList from the specified underlying data, and supplies the item type that goes into the list.
public DataList ( IEnumerable data, Type itemType ) : System
data IEnumerable
itemType System.Type
Результат System

DataList() публичный Метод

Creates an instance of a DataList from the specified underlying data.
public DataList ( IEnumerable data, bool enableCurrency ) : System
data IEnumerable The underlying data to abstract.
enableCurrency bool Whether to enable currency management.
Результат System

MoveNext() публичный Метод

Moves the current index forward.
public MoveNext ( ) : void
Результат void

MovePrevious() публичный Метод

Moves the current index back.
public MovePrevious ( ) : void
Результат void

MoveToItem() публичный Метод

Sets the current item to the specified item.
public MoveToItem ( object item ) : void
item object The item that should become the current item.
Результат void

UpdateFilter() публичный Метод

Sets the predicate to use to filter the items contained in this DataList.
public UpdateFilter ( IPredicate predicate ) : void
predicate IPredicate The predicate to use; null if no filter is to be applied.
Результат void

UpdateSort() публичный Метод

Sets the comparer to use to sort the items contained in this DataList.
public UpdateSort ( IComparer comparer ) : void
comparer IComparer The comparer to use; null if no sort is to be applied.
Результат void

this() публичный Метод

Gets the item at the specified index within the underlying data.
public this ( int index ) : object
index int The index to lookup.
Результат object