MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.PageReportModel Namespace / Length Structure / DivideBy Method
A dividend Length value.
A System.Single value indicating the divisor.
Example

DivideBy Method
Divides a Length value using a specified value.
Syntax
'Declaration
 
Public Shared Function DivideBy( _
   ByVal unit As Length, _
   ByVal divisor As Single _
) As Length
 

Parameters

unit
A dividend Length value.
divisor
A System.Single value indicating the divisor.

Return Value

A new Length value representing the quotient.
Exceptions
ExceptionDescription
Throws if divisor is zero.
Example
var length = new Length("2in");
var result = Length.DivideBy(length, 2); // 1in
See Also