Table of Contents

Class NotationElement.NotationElementReferencedElementsCollection

Namespace
NMF.Glsp.Notation
Assembly
NMF.Glsp.dll

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

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

Constructors

NotationElementReferencedElementsCollection(NotationElement)

Creates a new instance

public NotationElementReferencedElementsCollection(NotationElement parent)

Parameters

parent NotationElement

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()

Attaches the collection

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()

Detaches the collection

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