Table of Contents

Class TabularObjectCollection<T>

Inheritance
TabularObjectCollection<T>
Implements
Derived
Inherited Members
Namespace
TabularEditor.TOMWrapper
Assembly
TOMWrapper.dll

Represents a collection of Tabular Object Model objects.

public abstract class TabularObjectCollection<T> : INotifyCollectionChanged, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable where T : TabularNamedObject

Type Parameters

Name Description
T
Extension Methods

Properties

CollectionName

The name of this collection.

[Browsable(false)]
public string CollectionName { get; }

Property Value

Type Description
string

Count

The number of items in this collection.

[Browsable(false)]
public abstract int Count { get; }

Property Value

Type Description
int

this[int]

Gets the item on the specified index.

public virtual T this[int index] { get; }

Parameters

Type Name Description
int index

Property Value

Type Description
T

this[string]

Gets the item with the specified name.

public virtual T this[string name] { get; }

Parameters

Type Name Description
string name

Property Value

Type Description
T

Parent

[Browsable(false)]
public TabularObject Parent { get; }

Property Value

Type Description
TabularObject

Methods

Contains(string)

Returns true if this collection contains an item with the specified name.

public bool Contains(string name)

Parameters

Type Name Description
string name

Returns

Type Description
bool

Contains(T)

Returns true if this collection contains the specified item.

public bool Contains(T item)

Parameters

Type Name Description
T item

Returns

Type Description
bool

ContainsInvalidRef(MetadataObject)

protected virtual bool ContainsInvalidRef(MetadataObject item)

Parameters

Type Name Description
MetadataObject item

Returns

Type Description
bool

DoCollectionChanged(NotifyCollectionChangedAction, T)

protected virtual void DoCollectionChanged(NotifyCollectionChangedAction action, T item)

Parameters

Type Name Description
NotifyCollectionChangedAction action
T item

FindByName(string)

public virtual T FindByName(string name)

Parameters

Type Name Description
string name

Returns

Type Description
T

GetEnumerator()

public abstract IEnumerator<T> GetEnumerator()

Returns

Type Description
IEnumerator<T>

IndexOf(T)

Returns the index of the specified item.

public int IndexOf(T item)

Parameters

Type Name Description
T item

Returns

Type Description
int

InternalAdd(T)

protected virtual void InternalAdd(T item)

Parameters

Type Name Description
T item

InternalRemove(T)

protected virtual bool InternalRemove(T item)

Parameters

Type Name Description
T item

Returns

Type Description
bool

ToString()

public override string ToString()

Returns

Type Description
string

Events

CollectionChanged

public event NotifyCollectionChangedEventHandler CollectionChanged

Event Type

Type Description
NotifyCollectionChangedEventHandler