ComponentOne FinancialChart for WPF
C1.WPF 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
    'Usage
     
    
    Dim r As Rect
    Dim rect As Rect
    Dim value As Boolean
     
    value = Extensions.Contains(r, rect)
    [Extension()]
    public static bool Contains( 
       Rect r,
       Rect rect
    )
    [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