[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.PageReportModel.Length.Subtract

Subtract Method

Subtract(Length, Length)

Subtracts one Length value from another and returns the result in the unit of the first length.

Declaration
public static Length Subtract(Length unit1, Length unit2)
Parameters
Type Name Description
Length unit1

A minuend Length value.

Length unit2

A subtrahend Length value.

Returns
Type Description
Length

A new Length value representing the difference between the two lengths.

Examples
var length1 = new Length("2in");
var length2 = new Length("1in");
var result = Length.Subtract(length1, length2); // 1in