[]
        
(Showing Draft Content)

C1.Win.Interop.Rect.Contains

Contains Method

Contains(Point)

Tests whether the specified point is contained within the current Rect.

Declaration
public bool Contains(Point pt)
Parameters
Type Name Description
Point pt

The Point to test.

Returns
Type Description
bool

true if pt is contained within the current Rect structure, false otherwise.

Contains(Rect)

Tests whether the specified rectangle is entirely contained within the current Rect.

Declaration
public bool Contains(Rect rc)
Parameters
Type Name Description
Rect rc

The Rect to test.

Returns
Type Description
bool

true if rc is completely contained within the current Rect structure, false otherwise.

Contains(double, double)

Tests whether a point specified by its coordinates is contained within the current Rect.

Declaration
public bool Contains(double x, double y)
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

true if the specified point is contained within the current Rect structure, false otherwise.