How to detect the change in the size of the document in the diagram?

Hi~

I have two questions.

1. Document size change detection.
I set the document size like this for free node movement.

diagram1.Model.SizeToContent = true;

And I want to detect it when the document size increases or decreases.
But I can't find the event.
How can I detect document size change?

2. Change the node size based on the top and left.
I did this to change the node size.

rectangleTmp.Size = new SizeF(100, 100);

The size changes. However, the size changes based on the center.
I want to change it based on the top and left.
How can I do it?

Loader.
Up arrow icon