Table of Contents

Class TemplateSignatureParameterCollection

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

The collection class to implement the refined parameter reference for the TemplateSignature class

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

Constructors

TemplateSignatureParameterCollection(ITemplateSignature)

Creates a new instance

public TemplateSignatureParameterCollection(ITemplateSignature parent)

Parameters

parent ITemplateSignature

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 ITemplateParameter this[int index] { get; set; }

Parameters

index int

Property Value

ITemplateParameter

Methods

Add(ITemplateParameter)

Adds the given element to the collection

public virtual void Add(ITemplateParameter item)

Parameters

item ITemplateParameter

The item to add

AsNotifiable()

Gets an observable version of this collection

public virtual INotifyCollection<ITemplateParameter> AsNotifiable()

Returns

INotifyCollection<ITemplateParameter>

Attach()

Attaches this collection class

public void Attach()

Clear()

Clears the collection and resets all references that implement it.

public virtual void Clear()

Contains(ITemplateParameter)

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

public virtual bool Contains(ITemplateParameter item)

Parameters

item ITemplateParameter

The item that should be looked out for

Returns

bool

True, if it is contained, otherwise False

CopyTo(ITemplateParameter[], int)

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

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

Parameters

array ITemplateParameter[]

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

Returns

IEnumerator<ITemplateParameter>

A generic enumerator

IndexOf(ITemplateParameter)

Gets the index of the given element

public virtual int IndexOf(ITemplateParameter item)

Parameters

item ITemplateParameter

The item that should be looked for

Returns

int

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

Insert(int, ITemplateParameter)

Inserts the given item at the given index of the collection

public virtual void Insert(int index, ITemplateParameter item)

Parameters

index int

The index where to add the item

item ITemplateParameter

The item that should be added

OnCollectionChanged(NotifyCollectionChangedEventArgs)

Fires the CollectionChanged event

protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs eventArgs)

Parameters

eventArgs NotifyCollectionChangedEventArgs

Remove(ITemplateParameter)

Removes the given item from the collection

public virtual bool Remove(ITemplateParameter item)

Parameters

item ITemplateParameter

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