ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.PageReportModel Namespace / Length Structure / Subtract Method
A minuend Length value.
A subtrahend Length value.
Example

In This Topic
    Subtract Method
    In This Topic
    Subtracts one Length value from another and returns the result in the unit of the first length.
    Syntax
    'Declaration
     
    Public Shared Function Subtract( _
       ByVal unit1 As Length, _
       ByVal unit2 As Length _
    ) As Length
    public static Length Subtract( 
       Length unit1,
       Length unit2
    )

    Parameters

    unit1
    A minuend Length value.
    unit2
    A subtrahend Length value.

    Return Value

    A new Length value representing the difference between the two lengths.
    Example
    var length1 = new Length("2in");
    var length2 = new Length("1in");
    var result = Length.Subtract(length1, length2); // 1in
    See Also