How to automatically resize document

Is there a way to automatically resize the document after objects in the document have moved? I know I can RescaleToFit the contents of the document to the document view, but I also want to rescale the document to fit the contents of the view.
TIA,
Mark

You could call GoDocument.ComputeBounds, and then set GoDocument.TopLeft and GoDocument.Size correspondingly.
Is that what you mean?

Yep. That’s it, thanks