Progress® Telerik® Reporting R3 2017

UnitSubtraction Operator

Subtract one Unit from another.

Namespace:  Telerik.Reporting.Drawing
Assembly:  Telerik.Reporting (in Telerik.Reporting.dll)

Syntax

public static Unit operator -(
	Unit unit1,
	Unit unit2
)

Parameters

unit1
Type: Telerik.Reporting.DrawingUnit
The Unit to subtract from.
unit2
Type: Telerik.Reporting.DrawingUnit
The Unit to subtract.

Return Value

Type: Unit
The difference of the two units.

Exceptions

ExceptionCondition
ArgumentException Thrown when unit1 is empty.

Remarks

If unit2 is empty the method returns unit1. Otherwise, the method returns the difference of the two units in unit1's type.

See Also