Class CalculationItemCollection
Collection class for CalculationItem. Provides convenient properties for setting a property on multiple objects at once.
Inheritance
CalculationItemCollection
Assembly: TOMWrapper.dll
Syntax
public sealed class CalculationItemCollection : TabularObjectCollection<CalculationItem>, INotifyCollectionChanged, IReadOnlyList<CalculationItem>, IReadOnlyCollection<CalculationItem>, IEnumerable<CalculationItem>, IEnumerable, ITabularObjectContainer, ITabularTableObject, ITabularNamedObject, ITabularObject, INotifyPropertyChanged, INamedObject
Properties
CalculationGroupTable
Declaration
[Browsable(false)]
public CalculationGroupTable CalculationGroupTable { get; }
Property Value
Count
The number of items in this collection.
Declaration
public override int Count { get; }
Property Value
Overrides
Description
Sets the Description property of all objects in the collection at once.
Declaration
public string Description { set; }
Property Value
Expression
Sets the Expression property of all objects in the collection at once.
Declaration
public string Expression { set; }
Property Value
ObjectTypeName
Declaration
public string ObjectTypeName { get; }
Property Value
PropertyGridCalculationItems
This property points to the CalculationItemCollection itself. It is used only to display a clickable
"Calculation Items" property in the Property Grid, which will open the CalculationItemCollectionEditor when
clicked.
Declaration
public CalculationItemCollection PropertyGridCalculationItems { get; }
Property Value
Methods
Browsable(string)
Declaration
public bool Browsable(string propertyName)
Parameters
Type |
Name |
Description |
string |
propertyName |
|
Returns
Editable(string)
Declaration
public bool Editable(string propertyName)
Parameters
Type |
Name |
Description |
string |
propertyName |
|
Returns
GetAnnotation(int)
Declaration
public string GetAnnotation(int index)
Parameters
Type |
Name |
Description |
int |
index |
|
Returns
GetAnnotation(string)
Declaration
public string GetAnnotation(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
GetAnnotations()
Declaration
public IEnumerable<string> GetAnnotations()
Returns
GetAnnotationsCount()
Declaration
public int GetAnnotationsCount()
Returns
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public override IEnumerator<CalculationItem> GetEnumerator()
Returns
Overrides
GetNewAnnotationName()
Declaration
public string GetNewAnnotationName()
Returns
HasAnnotation(string)
Declaration
public bool HasAnnotation(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
RemoveAnnotation(string)
Declaration
public void RemoveAnnotation(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
RemoveAnnotation(string, bool)
Declaration
public void RemoveAnnotation(string name, bool undoable = false)
Parameters
SetAnnotation(int, string)
Declaration
public void SetAnnotation(int index, string value)
Parameters
SetAnnotation(int, string, bool)
Declaration
public void SetAnnotation(int index, string value, bool undoable = false)
Parameters
SetAnnotation(string, string)
Declaration
public void SetAnnotation(string name, string value)
Parameters
SetAnnotation(string, string, bool)
Declaration
public void SetAnnotation(string name, string value, bool undoable = false)
Parameters
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Implements
Extension Methods