Clarify the structure of diagrams by using containers and lists
Applies ToVisio Paket 2 Visio Paket 1 Visio Professional 2024 Visio Standard 2024 Visio Professional 2021 Visio Standard 2021 Visio Professional 2019 Visio Standard 2019 Visio Professional 2016 Visio Standard 2016

Complex diagrams in Visio usually benefit from having related shapes identified and labeled. Visible grouping makes it easier to understand the structure of a diagram quickly. A container is a collection of shapes surrounded by a visible border.

Add containers

  1. Select the shapes you want to contain.

  2. On the Insert tab, in the Diagram Parts group, click Container.

  3. Hold the pointer over the container styles to see a preview of the container on the page.

  4. Click to insert the container.

  5. With the container selected, type the heading for the group of shapes.

If no shapes are selected when you insert a container, the container is added at the middle of the current view. It does not actually contain any shapes, even if it looks like shapes are inside it. Those shapes are just in the same place, but the container doesn’t contain them.

Add shapes to a container

You add shapes to a container by dropping them inside the container. You can tell a shape is contained by selecting it—the container glows with a slight highlight while contained shapes are selected.

If the container is not highlighted when a shape inside it is selected, move the shape a little inside the container; this has the same effect as dropping the shape on. You can also right-click the shape, point to Container, and then click Add to Underlying Container.

You can also attach shapes to the edges of containers. When you hold a shape over the edge, the highlight appears on just that edge. After you drop the shape, it stays on the edge while you move or resize the container.

Behavior of contained shapes

Contained shapes have a specific relationship with the container, and are affected by actions that are performed on the container:

  • Moving a container moves the contained shapes with it.

  • Copying a container copies the contained shapes also.

  • Deleting a container deletes the contained shapes.

Format a container

While the container is selected, a Format (or Container Format) tab is available on the ribbon. This tab contains commands to customize the look and behavior of the container.

  • Set margins and automatic resizing.

  • Enhance the style.

  • Specify membership commands.

    • Lock Container     Makes it so shapes cannot be added to the selected container or deleted from it. However, shapes can still be moved around inside the container. Also, shapes can be dropped onto the container, but they do not become contained.

    • Select Contents     Simply selects all the contained shapes.

    • Disband Container     Deletes the selected container but leaves the shapes that it contained. (If you select a container and press Delete, the contained shapes are deleted too.)

In addition, you can use the formatting commands on the Home tab. For example, you can control the position of the container heading text by using the paragraph alignment commands.

Lists

Lists are special kinds of containers—any item you add to a list is automatically arranged in a sequence.

Unlike containers, there are no general-purpose lists that you can add to a diagram. Instead, some shapes have list behavior for special uses. Examples include swimlane shapes in cross-functional flowcharts, legend shapes for data graphics, and control shapes such as list box in the wireframe template.

You can reorder items in lists by dragging them to new positions, then add items by clicking the list insertion arrow.

Note: In the Visio web app, containers are available for those who have a Visio Plan 1 or Visio Plan 2 license. Containers are not available in Visio in Microsoft 365.

Add a container to the canvas

  1. Select the shapes you want to contain, if any.

  2. On the Insert tab, select Container, then select the style of container you want.

  3. The container is added to the canvas. Use the sizing handles and move handle to position the container as you see fit. 

  4. With the container selected, type the heading for the group of shapes.

If no shapes are selected when you insert a container, the container is added at the middle of the current view. It does not actually contain any shapes, even if it looks like shapes are inside it. Those shapes are just in the same place, but the container doesn’t contain them

Add shapes to a container

You add shapes to a container by dropping them inside the container. You can tell a shape is contained by selecting it—the container glows with a slight highlight while contained shapes are selected.

If the container is not highlighted when a shape inside it is selected, move the shape a little inside the container; this has the same effect as dropping the shape on. You can also right-click the shape, point to Container, and then click Add to Underlying Container.

You can also attach shapes to the edges of containers. When you hold a shape over the edge, the highlight appears on just that edge. After you drop the shape, it stays on the edge while you move or resize the container.

Behavior of contained shapes

Contained shapes have a specific relationship with the container, and are affected by actions that are performed on the container:

  • Moving a container moves the contained shapes with it.

  • Copying a container copies the contained shapes also.

  • Deleting a container deletes the contained shapes.

Format a container

While the container is selected, a Container tab is available on the ribbon. This tab contains commands to customize the look and behavior of the container.

  • Fit to Contents  Changes the size of the container so that it is just large enough to encompass all its shapes. 

  • Change Style  Opens the gallery of styles so you can select the one you want.

  • Rotate Heading  Moves the heading counterclockwise around the shape sides one increment at a time. 

  • Lock Container  Makes it so shapes cannot be added to the selected container or deleted from it. However, shapes can still be moved around inside the container. Also, shapes can be dropped onto the container, but they do not become contained.

In addition, you can use the formatting commands on the Home tab. For example, you can control the alignment of the container's heading text by selecting it and then using the paragraph alignment commands.

Lists

Lists are special kinds of containers—any item you add to a list is automatically arranged in a sequence.

Unlike containers, there are no general-purpose lists that you can add to a diagram. Instead, some shapes have list behavior for special uses. Examples include swimlane shapes in cross-functional flowcharts, legend shapes for data graphics, and control shapes such as list box in the wireframe template.

You can reorder items in lists by dragging them to new positions, then add items by clicking the list insertion arrow.

Perlu bantuan lainnya?

Ingin opsi lainnya?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.