ActiveReports 19 .NET Edition
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

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

    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