Class ObservableCompositionList<T>
Denotes the base class for an observable composition list
Inherited Members
Namespace: NMF.Models.Collections
Assembly: NMF.Models.dll
Syntax
public class ObservableCompositionList<T> : ObservableList<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IList, ICollection, INotifyCollectionChanging, INotifyPropertyChanged, INotifyCollectionChanged, IListExpression<T>, IList<T>, ICollectionExpression<T>, IEnumerableExpression<T>, IEnumerableExpression, ICollection<T>, IEnumerable<T>, IEnumerable where T : class, IModelElement
Type Parameters
Name | Description |
---|---|
T | The type of elements |
Constructors
| Edit this page View SourceObservableCompositionList(ModelElement)
Create a new instance
Declaration
public ObservableCompositionList(ModelElement parent)
Parameters
Type | Name | Description |
---|---|---|
ModelElement | parent | The parent model element |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if parent is null |
Properties
| Edit this page View SourceParent
Gets the parent model element
Declaration
public ModelElement Parent { get; }
Property Value
Type | Description |
---|---|
ModelElement |
Methods
| Edit this page View SourceClearItems()
Declaration
protected override void ClearItems()
Overrides
NMF.Collections.ObjectModel.ObservableCollectionExtended<T>.ClearItems()
|
Edit this page
View Source
InsertItem(int, T)
Declaration
protected override void InsertItem(int index, T item)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
T | item |
Overrides
| Edit this page View SourceRemoveItem(int)
Declaration
protected override void RemoveItem(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index |
Overrides
| Edit this page View SourceSetItem(int, T)
Declaration
protected override void SetItem(int index, T item)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
T | item |