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

C1.WPF Namespace > Extensions Class : Contains Method
One rectangle to test.
Another rectangle.
Determines if the one rectangular region is entirely contained within another structure.
Public Shared Function Contains( _
   ByVal r As System.Windows.Rect, _
   ByVal rect As System.Windows.Rect _
) As System.Boolean
Dim r As System.Windows.Rect
Dim rect As System.Windows.Rect
Dim value As System.Boolean
value = Extensions.Contains(r, rect)
public static System.bool Contains( 
   System.Windows.Rect r,
   System.Windows.Rect rect


One rectangle to test.
Another rectangle.

Return Value

This method returns true if the rectangular region represented by rect is entirely contained within r structure; otherwise false.
See Also


Extensions Class
Extensions Members