Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Drawing Namespace / Rectangle Structure / IntersectsWith Method
The rectangle to test.


In This Topic
    IntersectsWith Method (Rectangle)
    In This Topic
    Determines if this rectangle intersects with rect.
    Syntax
    'Declaration
     
    
    Public Function IntersectsWith( _
       ByVal rect As Rectangle _
    ) As Boolean
    'Usage
     
    
    Dim instance As Rectangle
    Dim rect As Rectangle
    Dim value As Boolean
     
    value = instance.IntersectsWith(rect)
    public bool IntersectsWith( 
       Rectangle rect
    )

    Parameters

    rect
    The rectangle to test.

    Return Value

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