Rectangle.Overlap Method
Thread safety: This method is thread-safe.
Overlap(Rectangle rectangle)
Tells whether this rectangle overlaps or touches another one.Syntax
public System.Boolean Overlap (
Rectangle rectangle
)
Parameters
rectangle
Type: Rectangle
Another rectangle.
Another rectangle.
Return Value
Type: System.Boolean
True if the rectangles overlap or touch each other.
True if the rectangles overlap or touch each other.
Remarks
If you do not want to regard touching rectangles as overlapping, call StrictlyOverlap instead.
Platforms
Windows, Linux, Android