[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.PageReportModel.Length.DivideBy

DivideBy Method

DivideBy(Length, float)

Divides a Length value using a specified value.

Declaration
public static Length DivideBy(Length unit, float divisor)
Parameters
Type Name Description
Length unit

A dividend Length value.

float divisor

A float value indicating the divisor.

Returns
Type Description
Length

A new Length value representing the quotient.

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

Throws if divisor is zero.