Class TabularObjectCollection<T>
Represents a collection of Tabular Object Model objects.
Inheritance
TabularObjectCollection<T>
Assembly: TOMWrapper.dll
Syntax
public abstract class TabularObjectCollection<T> : INotifyCollectionChanged, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable where T : TabularNamedObject
Type Parameters
Properties
CollectionName
The name of this collection.
Declaration
[Browsable(false)]
public string CollectionName { get; }
Property Value
Count
The number of items in this collection.
Declaration
[Browsable(false)]
public abstract int Count { get; }
Property Value
this[int]
Gets the item on the specified index.
Declaration
public virtual T this[int index] { get; }
Parameters
Type |
Name |
Description |
int |
index |
|
Property Value
this[string]
Gets the item with the specified name.
Declaration
public virtual T this[string name] { get; }
Parameters
Type |
Name |
Description |
string |
name |
|
Property Value
Parent
Declaration
[Browsable(false)]
public TabularObject Parent { get; }
Property Value
Methods
Contains(string)
Returns true if this collection contains an item with the specified name.
Declaration
public bool Contains(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
Contains(T)
Returns true if this collection contains the specified item.
Declaration
public bool Contains(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
Declaration
protected virtual bool ContainsInvalidRef(MetadataObject item)
Parameters
Type |
Name |
Description |
MetadataObject |
item |
|
Returns
DoCollectionChanged(NotifyCollectionChangedAction, T)
Declaration
protected virtual void DoCollectionChanged(NotifyCollectionChangedAction action, T item)
Parameters
FindByName(string)
Declaration
public virtual T FindByName(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
GetEnumerator()
Declaration
public abstract IEnumerator<T> GetEnumerator()
Returns
IndexOf(T)
Returns the index of the specified item.
Declaration
public int IndexOf(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
InternalAdd(T)
Declaration
protected virtual void InternalAdd(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
InternalRemove(T)
Declaration
protected virtual bool InternalRemove(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Events
CollectionChanged
Declaration
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Type
Implements
Extension Methods