BaseObservableCollection

Ecng.ComponentModel

Base class for custom observable collections.

Свойства

Count
public abstract int Count { get; }
value = baseObservableCollection.Count

Gets the number of elements in the collection.

MaxCount
public int MaxCount { get; set; }
value = baseObservableCollection.MaxCount
baseObservableCollection.MaxCount = value

Max number of elements before collection will auto trim itself. -1 to disable.

Методы

CheckCount
protected void CheckCount()
baseObservableCollection.CheckCount()

Check current count and trim if necessary.

RemoveRange
public abstract int RemoveRange(int index, int count)
result = baseObservableCollection.RemoveRange(index, count)

Removes a range of elements from the collection.

index
Starting index.
count
Number of elements to remove.

Возвращает: Number of elements removed.