Scroll window up to cursor placement (Word)

Modified on Mon, 5 Oct at 1:54 PM

With BaseExtensions we are able to control the view in Word, so that when command is run, the view will move to selection or defined bookmark. It is also possible to control the zoom level.

CMD

XML
<Cmd case="BaseExtensions:bring-selection-into-view" BookmarkName="xx" ScrollToTop="xx" Zoom="xx"/>

Parameters

BookmarkName

If defined, the view will jump to location of defined bookmark name. If omitted the view will jump to selection or cursor location

Zoom

Optional. Controls the zoom level of the document. Must be a whole number from 10-500. (i.e. 110 will set the zoom level of the document to 110%)

ScrollToTop

If True, command will scroll view to the top of the document. Default is False.

If both parameters BookmarkName and ScrollToTop are defined (should be avoided), ScrollToTop will win.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article