Rect.Intersection

From Xojo Documentation

Method

Rect.Intersection(Other As Rect) As Rect

New in 2019r2

Supported for all project types and targets.

Returns a new Rect representing the area the two Rects overlap.