Interface IExpressionObject
Objects that have an expression (measure, calculated column, partition, etc.)
Inherited Members
Namespace: TabularEditor.TOMWrapper
Assembly: TOMWrapper.dll
Syntax
public interface IExpressionObject : ITabularNamedObject, ITabularObject, INotifyPropertyChanged, INamedObject
Properties
DefaultExpressionProperty
Gets the default expression property on the current object.
Declaration
ExpressionProperty? DefaultExpressionProperty { get; }
Property Value
Type | Description |
---|---|
ExpressionProperty? |
Expression
Gets the expression of the current object (which is the value of its default expression property).
Declaration
string Expression { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetExpression(ExpressionProperty)
Gets the specified expression from the current object.
Declaration
string GetExpression(ExpressionProperty expressionProperty)
Parameters
Type | Name | Description |
---|---|---|
ExpressionProperty | expressionProperty |
Returns
Type | Description |
---|---|
string |
Exceptions
Type | Condition |
---|---|
InvalidEnumArgumentException | Thrown when the current object does not support the specified ExpressionProperty |
GetExpressionProperties()
Gets all supported expression properties on the current object.
Declaration
IEnumerable<ExpressionProperty> GetExpressionProperties()
Returns
Type | Description |
---|---|
IEnumerable<ExpressionProperty> |
SetExpression(ExpressionProperty, string)
Sets the specified expression on the current object.
Declaration
void SetExpression(ExpressionProperty expressionProperty, string expression)
Parameters
Type | Name | Description |
---|---|---|
ExpressionProperty | expressionProperty | |
string | expression |
Exceptions
Type | Condition |
---|---|
InvalidEnumArgumentException | Thrown when the current object does not support the specified ExpressionProperty |