Auto arrange child shapes in parent shape

I

ionpopescu

Hello,

I am using C# to generate a visio document. I have two master shapes -
let's call them MyParent and MyChild. I have dropped in my page one
instance of MyParent and a ton of instances of MyChild.

What I want to know now is if there a way in Automation to have Visio
execute something like this: "Auto arrange all the MyChild shapes
inside the MyParent shape, using 5 items per row, 10 px horizontal
spacing and 20 px veritical spacing, and resize MyParent's height if
it's smaller than the height of all added rows"
I was able to do this by calculating various heights, widths and
coordinates, but i'm sure there's a simpler way.

Thanks
 

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