Class UnaryOperatorExpression
Base for expressions that apply a single operator to one operand (e.g., negation, percent).
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Expressions
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public abstract class UnaryOperatorExpression : OperatorExpression, IPrecalculatedExpressionThreeNode
Constructors
UnaryOperatorExpression(RadExpression)
Initializes a new unary operator expression with the specified operand.
Declaration
protected UnaryOperatorExpression(RadExpression operand)
Parameters
|
RadExpression
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
|
ArgumentConversionRules
The argument conversion rules. |
Operand
Gets the single operand that this operator acts upon.
Declaration
public RadExpression Operand { get; }
Property Value
|
RadExpression
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
|
RadExpression
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
|
System.Double
operand
The operand as double. |
Returns
|
RadExpression
Value as RadExpression. |