Table of Contents

Class ComponentRealization.ComponentRealizationReferencedElementsCollection

Namespace
NMF.Interop.Uml
Assembly
NMF.UMLInterop.dll

The collection class to to represent the children of the ComponentRealization class

public class ComponentRealization.ComponentRealizationReferencedElementsCollection : ReferenceCollection, INotifyCollectionChanged, IList, ICollection, IDisposable, ICollectionExpression<IModelElement>, IEnumerableExpression<IModelElement>, IEnumerableExpression, ICollection<IModelElement>, IEnumerable<IModelElement>, IEnumerable
Inheritance
ComponentRealization.ComponentRealizationReferencedElementsCollection
Implements
Inherited Members

Constructors

ComponentRealizationReferencedElementsCollection(ComponentRealization)

Creates a new instance

public ComponentRealizationReferencedElementsCollection(ComponentRealization parent)

Parameters

parent ComponentRealization

Properties

Count

Gets the amount of elements contained in this collection

public override int Count { get; }

Property Value

int

Methods

Add(IModelElement)

Adds the given element to the collection

public override void Add(IModelElement item)

Parameters

item IModelElement

The 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 IModelElement

The 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 int

The 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 IModelElement

The item that should be removed

Returns

bool

True, if the item was removed, otherwise False