Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Drawing Namespace / Rectangle Structure / Contains Method
The x-coordinate of the point to test.
The y-coordinate of the point to test.


In This Topic
    Contains Method (Rectangle)
    In This Topic
    Determines if the specified point is contained within this Rect structure.
    Syntax
    'Declaration
     
    
    Public Function Contains( _
       ByVal x As Double, _
       ByVal y As Double _
    ) As Boolean
    'Usage
     
    
    Dim instance As Rectangle
    Dim x As Double
    Dim y As Double
    Dim value As Boolean
     
    value = instance.Contains(x, y)
    public bool Contains( 
       double x,
       double 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 Rect structure; otherwise false.
    See Also