Visio Guy

Visio Discussions => Programming & Code => Topic started by: DGR2017 on June 07, 2017, 06:33:49 AM

Title: Containers - Lists
Post by: DGR2017 on June 07, 2017, 06:33:49 AM
Hi,

How do I hide and show contents of List with a VBA code ? Please help me with sample code.

Thank you
Title: Re: Containers - Lists
Post by: Yacine on June 07, 2017, 07:07:54 AM
The basis of hiding shapes is nicely presented here: http://www.visguy.com/2006/09/05/the-hidden-world-of-visio-shapes/ (http://www.visguy.com/2006/09/05/the-hidden-world-of-visio-shapes/)
For lists, you will need to iterate over the elements of the list and apply one of the many possibilities described aboce to hide them.
Use GetMemberShapes to access the elements: https://msdn.microsoft.com/de-de/library/office/ff766306.aspx (https://msdn.microsoft.com/de-de/library/office/ff766306.aspx)