Class ReferenceType.ReferenceTypeReferencedElementsCollection
The collection class to to represent the children of the ReferenceType class
Implements
Inherited Members
Namespace: NMF.Models.Meta
Assembly: NMF.Models.dll
Syntax
public class ReferenceType.ReferenceTypeReferencedElementsCollection : ReferenceCollection, INotifyCollectionChanged, IDisposable, ICollectionExpression<IModelElement>, IEnumerableExpression<IModelElement>, IEnumerableExpression, ICollection<IModelElement>, IEnumerable<IModelElement>, IEnumerable
Constructors
| Edit this page View SourceReferenceTypeReferencedElementsCollection(ReferenceType)
Creates a new instance
Declaration
public ReferenceTypeReferencedElementsCollection(ReferenceType parent)
Parameters
Type | Name | Description |
---|---|---|
ReferenceType | parent |
Properties
| Edit this page View SourceCount
Gets the amount of elements contained in this collection
Declaration
public override int Count { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
Methods
| Edit this page View SourceAdd(IModelElement)
Adds the given element to the collection
Declaration
public override void Add(IModelElement item)
Parameters
Type | Name | Description |
---|---|---|
IModelElement | item | The item to add |
Overrides
| Edit this page View SourceAttachCore()
Declaration
protected override void AttachCore()
Overrides
| Edit this page View SourceClear()
Clears the collection and resets all references that implement it.
Declaration
public override void Clear()
Overrides
| Edit this page View SourceContains(IModelElement)
Gets a value indicating whether the given element is contained in the collection
Declaration
public override bool Contains(IModelElement item)
Parameters
Type | Name | Description |
---|---|---|
IModelElement | item | The item that should be looked out for |
Returns
Type | Description |
---|---|
bool | True, if it is contained, otherwise False |
Overrides
| Edit this page View SourceCopyTo(IModelElement[], int)
Copies the contents of the collection to the given array starting from the given array index
Declaration
public override void CopyTo(IModelElement[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
IModelElement[] | array | The array in which the elements should be copied |
int | arrayIndex | The starting index |
Overrides
| Edit this page View SourceDetachCore()
Declaration
protected override void DetachCore()
Overrides
| Edit this page View SourceGetEnumerator()
Gets an enumerator that enumerates the collection
Declaration
public override IEnumerator<IModelElement> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<IModelElement> | A generic enumerator |
Overrides
| Edit this page View SourceRemove(IModelElement)
Removes the given item from the collection
Declaration
public override bool Remove(IModelElement item)
Parameters
Type | Name | Description |
---|---|---|
IModelElement | item | The item that should be removed |
Returns
Type | Description |
---|---|
bool | True, if the item was removed, otherwise False |