As the Visio product team began planning for the Visio 2010 release, we collected a lot of customer drawings. Even though there were many different types of diagrams represented, we found some similarities. We noticed that as diagrams got more complex, users added special shapes to help keep things organized and understandable. Often users drew boxes around clusters of shapes to define a logical grouping. That got us thinking whether we could help with this kind of organization, and the Containers feature was born.
You’ve probably used something like a container in Visio already. In the past, you would draw a rectangle around some shapes, choose Send to Back to move it behind the shapes, add a text label and position it near the rectangle edge, and finally group everything to keep the shapes together. This works but it makes it hard to access the individual shapes, and you must ungroup and regroup every time the contents changed.
The Containers feature in Visio 2010 makes it easy to add a visual boundary around shapes, including a label. Visio does all the work to maintain the relationship between the container and its contents. To add a container to your diagram, first select the shapes to be contained. Then choose the Container command from the Insert tab of the ribbon. A gallery appears with several different container styles. Click on a style to add the container to the diagram.
The shapes inside the container are not in a group, so you have direct access to continue working with them. Shapes are added or removed simply by dragging them in or out of the container. When dragging a shape, an orange highlight appears around the container to indicate that Visio will make the shape a member of the container. The container can automatically grow or shrink as needed to fit the contents. Moving, copying or deleting the container will move, copy or delete the contents as well.
Containers can be formatted just like regular shapes. In particular the alignment of the heading is changed using the paragraph alignment buttons on the Home tab of the ribbon. There is also a contextual tab that allows further customization of containers. You can control how tightly the container bounds its contents by adjusting Margins or using the Fit to Contents command. You can switch between different visual styles and change the position of the container heading. It is also possible to lock the container to prevent shapes from being added or deleted.
The primary benefit of Containers is that you get both a visual grouping and a logical grouping of shapes in your diagram. Your diagram is more readable and looks professional. Visio does all the work to keep things together. You just need to decide which shapes belong in the container.
In our next post, we’ll take a look at more capabilities of containers and how to create your own container shape. Please tell us what you think about containers by using the Send a Smile feedback tool or by commenting on this post.
I am having a hard time with this. I read the Maryland, USA users comment below about "container" versus "wrapper." Maybe that can help me. This functionality is working against me. I have containers in containers. Objects seem to be assigned randomly to different containers and I can't seem to move them from one to the other I try to expand the parent container and the containers inside move in different directions. I can't group things with the container to solve that. This is not intuitive at all.
Do you know if a way to collapse the containers for a simplified view?
Looks good. Hoping these can be layered like a Venn diagram.
Containers ( swmobilestorage.com/los-angeles ) sizes comes different. Doing such project has size specifics like the example mentioned above.