Table of Contents

Class ReadExtentAction.ReadExtentActionReferencedElementsCollection

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

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

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

Constructors

ReadExtentActionReferencedElementsCollection(ReadExtentAction)

Creates a new instance

public ReadExtentActionReferencedElementsCollection(ReadExtentAction parent)

Parameters

parent ReadExtentAction

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