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

In This Topic
    Subtraction Operator (Length)
    In This Topic
    Subtracts one Length value from another and returns the result in the unit of the first length.
    Syntax
    'Declaration
     
    Public Operator -( _
       ByVal unit1 As Length, _
       ByVal unit2 As Length _
    ) As Length
    public Length operator -( 
       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 = length1 - length2; // 1in
    See Also