[]
        
(Showing Draft Content)

C1.C1Preview.RectangleD.Contains

Contains Method

Contains(PointD)

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

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

The PointD to test.

Returns
Type Description
bool

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

Contains(RectangleD)

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

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

The RectangleD to test.

Returns
Type Description
bool

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

Contains(double, double)

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

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 RectangleD structure, false otherwise.