ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.PageReportModel Namespace / Length Structure / Unary Negation Operator
A Length value to negate.
Example

In This Topic
    Unary Negation Operator (Length)
    In This Topic
    Inverts a specified Length value.
    Syntax
    'Declaration
     
    Public Operator -( _
       ByVal l As Length _
    ) As Length
    public Length operator -( 
       Length l
    )

    Parameters

    l
    A Length value to negate.

    Return Value

    A new Length value with the inverted value.
    Example
    var length = new Length("1in");
    var negatedLength = -length; // -1in
    See Also