[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.PageReportModel.Length.Divide

Divide Method

Divide(Length, Length)

Divides one Length value by another.

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

A dividend Length value.

Length unit2

A divisor Length value.

Returns
Type Description
double

A double value indicating the quotient of the division.

Examples
var length1 = new Length("2in");
var length2 = new Length("1in");
var result = Length.Divide(length1, length2); // 2
Exceptions
Type Condition
DivideByZeroException

Throws if unit1 or unit2 is zero.