Class CalculationItemCollection
- Inheritance
-
CalculationItemCollection
- Implements
-
- Inherited Members
-
- Namespace
- TabularEditor.TOMWrapper
- Assembly
- TOMWrapper.dll
Collection class for CalculationItem. Provides convenient properties for setting a property on multiple objects at once.
public sealed class CalculationItemCollection : TabularObjectCollection<CalculationItem>, INotifyCollectionChanged, IReadOnlyList<CalculationItem>, IReadOnlyCollection<CalculationItem>, IEnumerable<CalculationItem>, IEnumerable, ITabularObjectContainer, ITabularTableObject, ITabularNamedObject, ITabularObject, INotifyPropertyChanged, INamedObject
- Extension Methods
-
Properties
CalculationGroupTable
[Browsable(false)]
public CalculationGroupTable CalculationGroupTable { get; }
Property Value
Count
The number of items in this collection.
public override int Count { get; }
Property Value
Description
Sets the Description property of all objects in the collection at once.
public string Description { set; }
Property Value
Expression
Sets the Expression property of all objects in the collection at once.
public string Expression { set; }
Property Value
ObjectTypeName
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.
public CalculationItemCollection PropertyGridCalculationItems { get; }
Property Value
Methods
Browsable(string)
public bool Browsable(string propertyName)
Parameters
Type |
Name |
Description |
string |
propertyName |
|
Returns
Editable(string)
public bool Editable(string propertyName)
Parameters
Type |
Name |
Description |
string |
propertyName |
|
Returns
GetAnnotation(int)
public string GetAnnotation(int index)
Parameters
Type |
Name |
Description |
int |
index |
|
Returns
GetAnnotation(string)
public string GetAnnotation(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
GetAnnotations()
public IEnumerable<string> GetAnnotations()
Returns
GetAnnotationsCount()
public int GetAnnotationsCount()
Returns
GetEnumerator()
Returns an enumerator that iterates through the collection.
public override IEnumerator<CalculationItem> GetEnumerator()
Returns
GetNewAnnotationName()
public string GetNewAnnotationName()
Returns
HasAnnotation(string)
public bool HasAnnotation(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
RemoveAnnotation(string)
public void RemoveAnnotation(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
RemoveAnnotation(string, bool)
public void RemoveAnnotation(string name, bool undoable = false)
Parameters
SetAnnotation(int, string)
public void SetAnnotation(int index, string value)
Parameters
SetAnnotation(int, string, bool)
public void SetAnnotation(int index, string value, bool undoable = false)
Parameters
SetAnnotation(string, string)
public void SetAnnotation(string name, string value)
Parameters
SetAnnotation(string, string, bool)
public void SetAnnotation(string name, string value, bool undoable = false)
Parameters
Events
PropertyChanged
public event PropertyChangedEventHandler PropertyChanged
Event Type