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.

Compares first by Size, then by Origin.

Sample Code

Var rect1 As New Xojo.Core.Rect(10, 10, 100, 100)
Var rect2 As New Xojo.Core.Rect(5, 5, 10, 10)
If rect1 > rect2 Then
// rect1 is larger
End If