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
trueif 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
pointIPointThe point to test.
Returns
- bool
trueif 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
boundsIBoundsThe bounds to test for containment.
Returns
- bool
trueif this rectangle fully containsbounds; otherwise,false.