Class UnaryMinusExpression
Expression that negates a numeric value, representing the unary minus operator (-).
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Expressions
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public class UnaryMinusExpression : UnaryOperatorExpression, IPrecalculatedExpressionThreeNode
Constructors
UnaryMinusExpression(RadExpression)
Initializes a new unary minus expression that will negate the operand.
Declaration
public UnaryMinusExpression(RadExpression operand)
Parameters
|
RadExpression
operand
The operand. |
Properties
OperatorInfo
Gets the operator metadata for the unary minus operator.
Declaration
public override OperatorInfo OperatorInfo { get; }
Property Value
|
OperatorInfo
The operator info as OperatorInfo. |
Overrides
Methods
GetValueOverride(Double)
Calculates the negation of the operand by multiplying by -1.
Declaration
protected override RadExpression GetValueOverride(double operand)
Parameters
|
System.Double
operand
The operand as double. |
Returns
|
RadExpression
Value as RadExpression. |