MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.PageReportModel Namespace / Length Structure / Divide Method
A dividend Length value.
A divisor Length value.
Example

Divide Method
Divides one Length value by another.
Syntax
'Declaration
 
Public Shared Function Divide( _
   ByVal unit1 As Length, _
   ByVal unit2 As Length _
) As Double
 

Parameters

unit1
A dividend Length value.
unit2
A divisor Length value.

Return Value

A System.Double value indicating the quotient of the division.
Exceptions
ExceptionDescription
Throws if unit1 or unit2 is zero.
Example
var length1 = new Length("2in");
var length2 = new Length("1in");
var result = Length.Divide(length1, length2); // 2
See Also