Basic Library for WPF and Silverlight | ComponentOne
C1.Silverlight Namespace / Extensions Class / IntersectsWith Method
One rectangle to test.
Another rectangle to test.

In This Topic
    IntersectsWith Method (Extensions)
    In This Topic
    Determines if this rectangle intersects with rect.
    Syntax
    'Declaration
     
    
    <ExtensionAttribute()>
    Public Shared Function IntersectsWith( _
       ByVal r As Rect, _
       ByVal rect As Rect _
    ) As Boolean
    [Extension()]
    public static bool IntersectsWith( 
       Rect r,
       Rect rect
    )

    Parameters

    r
    One rectangle to test.
    rect
    Another rectangle to test.

    Return Value

    This method returns true if there is any intersection, otherwise false.
    See Also