Unavoidably detained

“Goodness me!” said the queen. “What a treasure!
Ten inches, I’d say! Let me measure!”
Just he now remained,
The ball over, detained
As they say, at her majesty’s pleasure!