Method Contains
Contains(int, int)
Determines whether the specified point is contained within the region.
public bool Contains(int x, int y)
Parameters
Returns
- bool
true
if the point is contained within the region; otherwise,false
.
Contains(Rectangle)
Determines whether the specified rectangle is contained within the region.
public bool Contains(Rectangle rectangle)
Parameters
rectangle
RectangleThe rectangle to check for containment.
Returns
- bool
true
if the rectangle is contained within the region; otherwise,false
.