Change scrollbars on active page

  • Thread starter Mats-Lennart Hansson
  • Start date
M

Mats-Lennart Hansson

Hi,
Is it possible to change the scrollbars on an active page by using c# in an
add-in? The reason I'm asking this is because I want to focus a page and
then adjust it so a specific shape is in the middle of the window (I'm not
allowed to change the location of the shape).

Thanks,

Mats-Lennart
 
M

Mark Nelson [MS]

You can use the Window.ScrollViewTo method to center the window on a
specific set of coordinates. You can also use the Window.SetViewRect method
to define a rectangle for panning and zooming together.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top