Class ClearAssociationAction.ClearAssociationActionReferencedElementsCollection
The collection class to to represent the children of the ClearAssociationAction class
public class ClearAssociationAction.ClearAssociationActionReferencedElementsCollection : ReferenceCollection, INotifyCollectionChanged, IList, ICollection, IDisposable, ICollectionExpression<IModelElement>, IEnumerableExpression<IModelElement>, IEnumerableExpression, ICollection<IModelElement>, IEnumerable<IModelElement>, IEnumerable
- Inheritance
-
ClearAssociationAction.ClearAssociationActionReferencedElementsCollection
- Implements
- Inherited Members
Constructors
ClearAssociationActionReferencedElementsCollection(ClearAssociationAction)
Creates a new instance
public ClearAssociationActionReferencedElementsCollection(ClearAssociationAction parent)
Parameters
parent
ClearAssociationAction
Properties
Count
Gets the amount of elements contained in this collection
public override int Count { get; }
Property Value
Methods
Add(IModelElement)
Adds the given element to the collection
public override void Add(IModelElement item)
Parameters
item
IModelElementThe item to add
AttachCore()
Registers event hooks to keep the collection up to date
protected override void AttachCore()
Clear()
Clears the collection and resets all references that implement it.
public override void Clear()
Contains(IModelElement)
Gets a value indicating whether the given element is contained in the collection
public override bool Contains(IModelElement item)
Parameters
item
IModelElementThe item that should be looked out for
Returns
- bool
True, if it is contained, otherwise False
CopyTo(IModelElement[], int)
Copies the contents of the collection to the given array starting from the given array index
public override void CopyTo(IModelElement[] array, int arrayIndex)
Parameters
array
IModelElement[]The array in which the elements should be copied
arrayIndex
intThe starting index
DetachCore()
Unregisters all event hooks registered by AttachCore
protected override void DetachCore()
GetEnumerator()
Gets an enumerator that enumerates the collection
public override IEnumerator<IModelElement> GetEnumerator()
Returns
- IEnumerator<IModelElement>
A generic enumerator
Remove(IModelElement)
Removes the given item from the collection
public override bool Remove(IModelElement item)
Parameters
item
IModelElementThe item that should be removed
Returns
- bool
True, if the item was removed, otherwise False