New to Telerik Document ProcessingStart a free 30-day trial

Base for expressions that apply a single operator to one operand (e.g., negation, percent).

Definition

Constructors

Initializes a new unary operator expression with the specified operand.

C#
protected UnaryOperatorExpression(RadExpression operand, Workbook workbook = null)
Parameters:operandRadExpression

The operand.

workbookWorkbook

The workbook.

Methods

Converts the operand to a number and delegates to the derived class for specific operation logic.

C#
protected override sealed RadExpression GetValueOverride()
Returns:

RadExpression

The value as RadExpression.

Overrides: RadExpression.GetValueOverride()

Calculates the result of applying the operator to the numeric operand; override to define operator-specific behavior.

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

The operand as double.

Returns:

RadExpression

Value as RadExpression.

Properties

Gets the rules for converting the operand to a numeric value for evaluation.

C#
public virtual ArgumentConversionRules ArgumentConversionRules { get; }
Property Value:

The argument conversion rules.

Gets the single operand that this operator acts upon.

C#
public RadExpression Operand { get; }
Property Value:

The operand.