I think you can use the _currentMeasure.left / _currentMeasure.top
properties of the control.
The _currentMeasure
property is public but hidden (hence the underscore). If you don’t want to use it directly, you can use control.centerX - control.widthInPixels / 2
and control.centerY - control.heightInPixels / 2
to get those values.