[]
        
(Showing Draft Content)

GrapeCity.Drawing.Rectangle.Contains

Contains Method

Contains(double, double)

Determines if the specified point is contained within this Rectangle structure.

Declaration
public bool Contains(double x, double y)
Public Function Contains(x As Double, y As Double) As Boolean
Parameters
Type Name Description
double x

The x-coordinate of the point to test.

double y

The y-coordinate of the point to test.

Returns
Type Description
bool

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