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
- Extension Methods
-
Properties
CollectionName
The name of this collection.
[Browsable(false)]
public string CollectionName { get; }
Property Value
Count
The number of items in this collection.
[Browsable(false)]
public abstract int Count { get; }
Property Value
this[int]
Gets the item on the specified index.
public virtual T this[int index] { get; }
Parameters
Type |
Name |
Description |
int |
index |
|
Property Value
this[string]
Gets the item with the specified name.
public virtual T this[string name] { get; }
Parameters
Type |
Name |
Description |
string |
name |
|
Property Value
Parent
[Browsable(false)]
public TabularObject Parent { get; }
Property Value
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
Contains(T)
Returns true if this collection contains the specified item.
public bool Contains(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
protected virtual bool ContainsInvalidRef(MetadataObject item)
Parameters
Type |
Name |
Description |
MetadataObject |
item |
|
Returns
DoCollectionChanged(NotifyCollectionChangedAction, T)
protected virtual void DoCollectionChanged(NotifyCollectionChangedAction action, T item)
Parameters
FindByName(string)
public virtual T FindByName(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
GetEnumerator()
public abstract IEnumerator<T> GetEnumerator()
Returns
IndexOf(T)
Returns the index of the specified item.
public int IndexOf(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
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
ToString()
public override string ToString()
Returns
Events
CollectionChanged
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Type