Rect.Union

From Xojo Documentation

Method

Rect.Union(Other As Rect) As Rect

New in 2019r2

Supported for all project types and targets.

Creates a new Rect containing both rects.