Class
UnaryMinusExpression

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

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Expressions

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public class UnaryMinusExpression : UnaryOperatorExpression

Inheritance: objectRadExpressionOperatorExpressionUnaryOperatorExpressionUnaryMinusExpression

Inherited Members UnaryOperatorExpression.GetValueOverride()UnaryOperatorExpression.OperandUnaryOperatorExpression.ArgumentConversionRulesRadExpression.GetValue()RadExpression.GetValueAsString()RadExpression.GetValueAsString(CultureInfo)RadExpression.ToString()RadExpression.ToString(CultureInfo)RadExpression.InvalidateValue()RadExpression.AttachToChildrenEvent(IEnumerable<RadExpression>)RadExpression.AttachToChildEvent(RadExpression)RadExpression.OnValueInvalidated()RadExpression.ValueInvalidated

Constructors

UnaryMinusExpression(RadExpression)

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

Declaration

cs-api-definition
public UnaryMinusExpression(RadExpression operand)

Parameters

operand

RadExpression

The operand.

Properties

OperatorInfo

Gets the operator metadata for the unary minus operator.

Declaration

cs-api-definition
public override OperatorInfo OperatorInfo { get; }

Property Value

OperatorInfo

The operator info as OperatorInfo.

Overrides OperatorExpression.OperatorInfo

Methods

GetValueOverride(double)

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

Declaration

cs-api-definition
protected override RadExpression GetValueOverride(double operand)

Parameters

operand

double

The operand as double.

Returns

RadExpression

Value as RadExpression.

Overrides UnaryOperatorExpression.GetValueOverride(double)