Visio Guy

Visio Discussions => Visio 2010 Issues => Topic started by: Aravind on October 14, 2009, 10:28:31 AM

Title: Retrive the Visio 2010 container from contained shape?
Post by: Aravind on October 14, 2009, 10:28:31 AM
Assume that a shape(x) is present inside a container(Y). From container(Y) we can get the shape(x) from the shapes contained in it. Is it possible to retrieve the container(Y) shape from the shape(x) in Visio2010? 
Title: Re: Retrive the Visio 2010 container from contained shape?
Post by: aledlund on October 14, 2009, 11:57:57 AM
You might check this post by David Parker. He has a routine that lists where things are and is probably modifiable.

http://bvisual.spaces.live.com/blog/cns!3350D61BC93733A9!1811.entry (http://bvisual.spaces.live.com/blog/cns!3350D61BC93733A9!1811.entry)

al
Title: Re: Retrive the Visio 2010 container from contained shape?
Post by: Aravind on October 14, 2009, 01:41:39 PM
Thanks. This is the exact thing I was looking for.

Shape.MemberOfContainers()

This method solves all my queries