Class ModelGrowingCollection<T>
Generic list container to which items can be added or which can be cleared only
Inheritance
System.Object
System.Collections.ObjectModel.Collection<T>
System.Collections.ObjectModel.ObservableCollection<T>
ModelGrowingCollection<T>
Implements
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IReadOnlyList<T>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
System.Collections.Specialized.INotifyCollectionChanged
System.ComponentModel.INotifyPropertyChanged
System.ICloneable
Inherited Members
System.Collections.ObjectModel.ObservableCollection<T>.BlockReentrancy()
System.Collections.ObjectModel.ObservableCollection<T>.CheckReentrancy()
System.Collections.ObjectModel.ObservableCollection<T>.InsertItem(System.Int32, T)
System.Collections.ObjectModel.ObservableCollection<T>.Move(System.Int32, System.Int32)
System.Collections.ObjectModel.ObservableCollection<T>.MoveItem(System.Int32, System.Int32)
System.Collections.ObjectModel.ObservableCollection<T>.OnPropertyChanged(System.ComponentModel.PropertyChangedEventArgs)
System.Collections.ObjectModel.ObservableCollection<T>.RemoveItem(System.Int32)
System.Collections.ObjectModel.ObservableCollection<T>.SetItem(System.Int32, T)
System.Collections.ObjectModel.ObservableCollection<T>.CollectionChanged
System.Collections.ObjectModel.ObservableCollection<T>.PropertyChanged
System.Collections.ObjectModel.ObservableCollection<T>.System.ComponentModel.INotifyPropertyChanged.PropertyChanged
System.Collections.ObjectModel.Collection<T>.System.Collections.IList.get_Item(System.Int32)
System.Collections.ObjectModel.Collection<T>.System.Collections.IList.set_Item(System.Int32, System.Object)
System.Collections.ObjectModel.Collection<T>.Add(T)
System.Collections.ObjectModel.Collection<T>.Clear()
System.Collections.ObjectModel.Collection<T>.Contains(T)
System.Collections.ObjectModel.Collection<T>.CopyTo(T[], System.Int32)
System.Collections.ObjectModel.Collection<T>.GetEnumerator()
System.Collections.ObjectModel.Collection<T>.IndexOf(T)
System.Collections.ObjectModel.Collection<T>.Insert(System.Int32, T)
System.Collections.ObjectModel.Collection<T>.Remove(T)
System.Collections.ObjectModel.Collection<T>.RemoveAt(System.Int32)
System.Collections.ObjectModel.Collection<T>.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.ObjectModel.Collection<T>.System.Collections.IEnumerable.GetEnumerator()
System.Collections.ObjectModel.Collection<T>.System.Collections.IList.Add(System.Object)
System.Collections.ObjectModel.Collection<T>.System.Collections.IList.Contains(System.Object)
System.Collections.ObjectModel.Collection<T>.System.Collections.IList.IndexOf(System.Object)
System.Collections.ObjectModel.Collection<T>.System.Collections.IList.Insert(System.Int32, System.Object)
System.Collections.ObjectModel.Collection<T>.System.Collections.IList.Remove(System.Object)
System.Collections.ObjectModel.Collection<T>.Count
System.Collections.ObjectModel.Collection<T>.Item[System.Int32]
System.Collections.ObjectModel.Collection<T>.Items
System.Collections.ObjectModel.Collection<T>.System.Collections.Generic.ICollection<T>.IsReadOnly
System.Collections.ObjectModel.Collection<T>.System.Collections.ICollection.IsSynchronized
System.Collections.ObjectModel.Collection<T>.System.Collections.ICollection.SyncRoot
System.Collections.ObjectModel.Collection<T>.System.Collections.IList.IsFixedSize
System.Collections.ObjectModel.Collection<T>.System.Collections.IList.IsReadOnly
System.Collections.ObjectModel.Collection<T>.System.Collections.IList.Item[System.Int32]
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: DuetAPI.Machine
Assembly: DuetAPI.dll
Syntax
public class ModelGrowingCollection<T> : ModelCollection<T>, IList<T>, ICollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged, ICloneable
Type Parameters
Name | Description |
---|---|
T | Item type |
Constructors
ModelGrowingCollection()
Constructor of this class
Declaration
public ModelGrowingCollection()
Methods
OnCollectionChanged(NotifyCollectionChangedEventArgs)
Called after the collection has been changed but before the corresponding event has been raised
Declaration
protected override void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Specialized.NotifyCollectionChangedEventArgs | e | Event arguments |
Overrides
DuetAPI.Machine.ModelCollection<T>.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs)
UpdateFromJson(JsonElement)
Update this collection from a given JSON array
Declaration
public override void UpdateFromJson(JsonElement jsonElement)
Parameters
Type | Name | Description |
---|---|---|
System.Text.Json.JsonElement | jsonElement | Element to update this intance from |
Overrides
DuetAPI.Machine.ModelCollection<T>.UpdateFromJson(System.Text.Json.JsonElement)
Implements
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IReadOnlyList<T>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
System.Collections.Specialized.INotifyCollectionChanged
System.ComponentModel.INotifyPropertyChanged
System.ICloneable