Table of Contents

Class Comment.CommentReferencedElementsCollection

Namespace
NMF.Interop.Cmof
Assembly
NMF.UMLInterop.dll

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

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

Constructors

CommentReferencedElementsCollection(Comment)

Creates a new instance

public CommentReferencedElementsCollection(Comment parent)

Parameters

parent Comment

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

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

CreateDependencies()

Creates dependencies for the given collection

protected override INotifiable[] CreateDependencies()

Returns

INotifiable[]

A collection of dependencies

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