Spread WPF 18
GrapeCity.Drawing Namespace / Rect Structure / Contains Method
The x-coordinate of the point to test.
The y-coordinate of the point to test.


In This Topic
    Contains Method (Rect)
    In This Topic
    Determines if the specified point is contained within this Rectangle structure.
    Syntax
    'Declaration
     
    Public Function Contains( _
       ByVal x As Integer, _
       ByVal y As Integer _
    ) As Boolean
    'Usage
     
    Dim instance As Rect
    Dim x As Integer
    Dim y As Integer
    Dim value As Boolean
     
    value = instance.Contains(x, y)
    public bool Contains( 
       int x,
       int y
    )

    Parameters

    x
    The x-coordinate of the point to test.
    y
    The y-coordinate of the point to test.

    Return Value

    This method returns true if the point defined by x and y is contained within this Rectangle structure; otherwise false.
    See Also