Method Contains
Contains(double, double)
Determines whether the specified point lies inside the rectangle (inclusive of edges).
public bool Contains(double x, double y)
Parameters
Returns
- bool
true
if the point is inside or on the edge of the rectangle; otherwise,false
.
Contains(IPoint)
Determines whether the specified IPoint lies inside the rectangle (inclusive of edges).
public bool Contains(IPoint point)
Parameters
point
IPointThe point to test.
Returns
- bool
true
if the point is inside or on the edge of the rectangle; otherwise,false
.
Contains(IBounds)
Determines whether this rectangle completely contains another bounds object.
public bool Contains(IBounds bounds)
Parameters
bounds
IBoundsThe bounds to test for containment.
Returns
- bool
true
if this rectangle fully containsbounds
; otherwise,false
.