Stop recalculate alignment box

H

Hin

Is it possible not to re-calculate alignment box when i call AddToGroup()?
Or any workaround?

Thanks.
 
C

Chris Roth [ Visio MVP ]

Set the cell: Protection.LockCalcWH = 1.

This should stop the bounding box from changing. It also works when editing
vertices of a single shape.

--

Hope this helps,

Chris Roth
Visio MVP
 
K

Kari Yli-Kuha

Hin said:
Is it possible not to re-calculate alignment box when i call AddToGroup()?
Or any workaround?

I don't know any way to stop recalculation, but...

as a workaround you could store the original XY position, move the shape inside the group boundaries,
call AddToGroup() and then reposition the shape back using .XYFromPage()
Regards,
Hin

/C
 

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