Table of Contents

Interface IExpressionObject

Inherited Members
Namespace
TabularEditor.TOMWrapper
Assembly
TOMWrapper.dll

Objects that have an expression (measure, calculated column, partition, etc.)

public interface IExpressionObject : ITabularNamedObject, ITabularObject, INotifyPropertyChanged, INamedObject
Extension Methods

Properties

DefaultExpressionProperty

Gets the default expression property on the current object.

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).

string Expression { get; }

Property Value

Type Description
string

Methods

GetExpression(ExpressionProperty)

Gets the specified expression from the current object.

string GetExpression(ExpressionProperty expressionProperty)

Parameters

Type Name Description
ExpressionProperty expressionProperty

Returns

Type Description
string

Exceptions

InvalidEnumArgumentException

Thrown when the current object does not support the specified ExpressionProperty

GetExpressionProperties()

Gets all supported expression properties on the current object.

IEnumerable<ExpressionProperty> GetExpressionProperties()

Returns

Type Description
IEnumerable<ExpressionProperty>

SetExpression(ExpressionProperty, string)

Sets the specified expression on the current object.

void SetExpression(ExpressionProperty expressionProperty, string expression)

Parameters

Type Name Description
ExpressionProperty expressionProperty
string expression

Exceptions

InvalidEnumArgumentException

Thrown when the current object does not support the specified ExpressionProperty