Base for expressions that apply a single operator to one operand (e.g., negation, percent).
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Expressions
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public abstract class UnaryOperatorExpression : OperatorExpression
Inheritance: objectRadExpressionOperatorExpressionUnaryOperatorExpression
Derived Classes:
Inherited Members
Constructors
Initializes a new unary operator expression with the specified operand.
protected UnaryOperatorExpression(RadExpression operand, Workbook workbook = null)
The operand.
workbookWorkbookThe workbook.
Methods
Converts the operand to a number and delegates to the derived class for specific operation logic.
protected override sealed RadExpression GetValueOverride()
The value as RadExpression.
Overrides:
Calculates the result of applying the operator to the numeric operand; override to define operator-specific behavior.
protected abstract RadExpression GetValueOverride(double operand)
The operand as double.
Returns:Value as RadExpression.
Properties
Gets the rules for converting the operand to a numeric value for evaluation.
public virtual ArgumentConversionRules ArgumentConversionRules { get; }
The argument conversion rules.
Gets the single operand that this operator acts upon.
public RadExpression Operand { get; }
The operand.