Xojo.Core.Rect.Compare
From Xojo Documentation
Method
Xojo.Core.Rect.Operator_Compare(rhs As Xojo.Core.Rect) As Integer
Supported for all project types and targets.
Supported for all project types and targets.
Compares first by Size, then by Origin.