Basic Library for WPF and Silverlight | ComponentOne
C1.Silverlight Namespace / Extensions Class / Contains Method
One rectangle to test.
Another rectangle.

In This Topic
    Contains Method (Extensions)
    In This Topic
    Determines if the one rectangular region is entirely contained within another structure.
    Syntax
    'Declaration
     
    
    <ExtensionAttribute()>
    Public Shared Function Contains( _
       ByVal r As Rect, _
       ByVal rect As Rect _
    ) As Boolean
    [Extension()]
    public static bool Contains( 
       Rect r,
       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