ComponentOne Basic Library for WPF and Silverlight
IntersectsWith Method (Extensions)


C1.Silverlight Namespace > Extensions Class : IntersectsWith Method
One rectangle to test.
Another rectangle to test.
Determines if this rectangle intersects with rect.
Syntax
'Declaration
 
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Function IntersectsWith( _
   ByVal r As System.Windows.Rect, _
   ByVal rect As System.Windows.Rect _
) As System.Boolean
'Usage
 
Dim r As System.Windows.Rect
Dim rect As System.Windows.Rect
Dim value As System.Boolean
 
value = Extensions.IntersectsWith(r, rect)
[System.Runtime.CompilerServices.Extension()]
public static System.bool IntersectsWith( 
   System.Windows.Rect r,
   System.Windows.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

Reference

Extensions Class
Extensions Members