New to Telerik Document ProcessingStart a free 30-day trial

Expression that negates a numeric value, representing the unary minus operator (-).

Definition

Constructors

Initializes a new unary minus expression that will negate the operand.

C#
public UnaryMinusExpression(RadExpression operand, Workbook workbook = null)
Parameters:operandRadExpression

The operand.

workbookWorkbook

The workbook.

Methods

Calculates the negation of the operand by multiplying by -1.

C#
protected override RadExpression GetValueOverride(double operand)
Parameters:operanddouble

The operand as double.

Returns:

RadExpression

Value as RadExpression.

Overrides: UnaryOperatorExpression.GetValueOverride(double)

Properties

Gets the operator metadata for the unary minus operator.

C#
public override OperatorInfo OperatorInfo { get; }
Property Value:

The operator info as OperatorInfo.

Overrides: OperatorExpression.OperatorInfo