Determines if the one rectangular region is entirely contained within another structure.
Syntax
'Declaration
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Function Contains( _
ByVal As System.Windows.Rect, _
ByVal 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 ,
System.Windows.Rect
)
Parameters
- r
- One rectangle to test.
- rect
- Another rectangle.
Return Value
This method returns true if the rectangular region represented by is entirely contained within structure; otherwise false.
See Also