ComponentOne FinancialChart for WPF
C1.WPF Namespace / Extensions Class / IntersectsWith Method
One rectangle to test.
Another rectangle to test.



In This Topic
    IntersectsWith Method
    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
    'Usage
     
    
    Dim r As Rect
    Dim rect As Rect
    Dim value As Boolean
     
    value = Extensions.IntersectsWith(r, rect)
    [Extension()]
    public static bool IntersectsWith( 
       Rect r,
       Rect rect
    )
    [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