scripting:api:external-document-view:set-rect

SetRect

Directs the preview handler to change the area within the parent hwnd that it draws into.

ExternalDocumentView.SetRect(prc);
ExternalDocumentView.SetRect prc
HRESULT hr = ExternalDocumentView.SetRect(prc);