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
<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.
Comments
0 comments
Article is closed for comments.