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.
Syntax
'Declaration
 
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Function Contains( _
   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.Contains(r, rect)
[System.Runtime.CompilerServices.Extension()]
public static System.bool Contains( 
   System.Windows.Rect r,
   System.Windows.Rect rect
)

Parameters

r
One rectangle to test.
rect
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

Reference

Extensions Class
Extensions Members