ClassUnaryOperatorExpression
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
UnaryOperatorExpression(RadExpression)
Initializes a new unary operator expression with the specified operand.
Declaration
protected UnaryOperatorExpression(RadExpression operand)
Parameters
operand
The operand.
Properties
ArgumentConversionRules
Gets the rules for converting the operand to a numeric value for evaluation.
Declaration
public virtual ArgumentConversionRules ArgumentConversionRules { get; }
Property Value
The argument conversion rules.
Operand
Gets the single operand that this operator acts upon.
Declaration
public RadExpression Operand { get; }
Property Value
The operand.
Methods
GetValueOverride()
Converts the operand to a number and delegates to the derived class for specific operation logic.
Declaration
protected override sealed RadExpression GetValueOverride()
Returns
The value as RadExpression.
Overrides
GetValueOverride(double)
Calculates the result of applying the operator to the numeric operand; override to define operator-specific behavior.
Declaration
protected abstract RadExpression GetValueOverride(double operand)
Parameters
operand
The operand as double.
Returns
Value as RadExpression.