From Xojo Documentation
| This item was deprecated in version 2019r2.
Please use Rect.HorizontalCenter as a replacement.
Property (As Double )
The center of the Rect on the X axis. Changing this value will move the Rect.
This example is in the MouseDrag event. It gets the horizontal and vertical centers of the rect being dragged.