Realbasic.Rect.Right

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Integer )
aRealbasic.Rect.Right = newIntegerValue
or
IntegerValue = aRealbasic.Rect.Right

New in 2011r2

Supported for all project types and targets.

The right edge of the rect on the X axis. Changing this value will resize the rect.

Sample Code

This example moves the rect to the right by 50 pixels, keeping its height and width intact:

myRect.Left = myRect.Right + 50