Xojo.Core.Rect.Union
From Xojo Documentation
Method
Xojo.Core.Rect.Union(Other As Xojo.Core.Rect) As Xojo.Core.Rect
Supported for all project types and targets.
Supported for all project types and targets.
Creates a new rect that contains both rects.