Table of Contents

Class ProfileElementImportCollection

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

The collection class to implement the refined elementImport reference for the Profile class

public class ProfileElementImportCollection : IListExpression<IElementImport>, ICollectionExpression<IElementImport>, IEnumerableExpression<IElementImport>, IEnumerableExpression, IList<IElementImport>, ICollection<IElementImport>, IEnumerable<IElementImport>, IEnumerable
Inheritance
ProfileElementImportCollection
Implements
Inherited Members

Constructors

ProfileElementImportCollection(IProfile)

Creates a new instance

public ProfileElementImportCollection(IProfile parent)

Parameters

parent IProfile

Properties

Count

Gets the amount of elements contained in this collection

public virtual int Count { get; }

Property Value

int

IsAttached

Returns that this composed collection is always attached.

public bool IsAttached { get; }

Property Value

bool

IsReadOnly

Gets a value indicating that the collection is not read-only

public virtual bool IsReadOnly { get; }

Property Value

bool

this[int]

Gets or sets the item at the given position

public virtual IElementImport this[int index] { get; set; }

Parameters

index int

Property Value

IElementImport

Methods

Add(IElementImport)

Adds the given element to the collection

public virtual void Add(IElementImport item)

Parameters

item IElementImport

The item to add

AsNotifiable()

Gets an observable version of this collection

public virtual INotifyCollection<IElementImport> AsNotifiable()

Returns

INotifyCollection<IElementImport>

Attach()

Attaches this collection class

public void Attach()

Clear()

Clears the collection and resets all references that implement it.

public virtual void Clear()

Contains(IElementImport)

Gets a value indicating whether the given element is contained in the collection

public virtual bool Contains(IElementImport item)

Parameters

item IElementImport

The item that should be looked out for

Returns

bool

True, if it is contained, otherwise False

CopyTo(IElementImport[], int)

Copies the contents of the collection to the given array starting from the given array index

public virtual void CopyTo(IElementImport[] array, int arrayIndex)

Parameters

array IElementImport[]

The array in which the elements should be copied

arrayIndex int

The starting index

Detach()

Detaches this collection class

public void Detach()

GetEnumerator()

Gets an enumerator that enumerates the collection

public virtual IEnumerator<IElementImport> GetEnumerator()

Returns

IEnumerator<IElementImport>

A generic enumerator

IndexOf(IElementImport)

Gets the index of the given element

public virtual int IndexOf(IElementImport item)

Parameters

item IElementImport

The item that should be looked for

Returns

int

The index of the given element or -1 if it was not found

Insert(int, IElementImport)

Inserts the given item at the given index of the collection

public virtual void Insert(int index, IElementImport item)

Parameters

index int

The index where to add the item

item IElementImport

The item that should be added

OnCollectionChanged(NotifyCollectionChangedEventArgs)

Fires the CollectionChanged event

protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs eventArgs)

Parameters

eventArgs NotifyCollectionChangedEventArgs

Remove(IElementImport)

Removes the given item from the collection

public virtual bool Remove(IElementImport item)

Parameters

item IElementImport

The item that should be removed

Returns

bool

True, if the item was removed, otherwise False

RemoveAt(int)

Removes the item at the given position

public virtual void RemoveAt(int index)

Parameters

index int

The index where to remove the item

Events

CollectionChanged

Gets fired when the contents of this collection changes

public event NotifyCollectionChangedEventHandler CollectionChanged

Event Type

NotifyCollectionChangedEventHandler