This documentation is archived and is not being maintained.

How to: Remove Type Shapes from Class Diagrams (Class Designer)

In Class Designer, you can remove a type shape from the class diagram without affecting the type's underlying code.


Removing type shapes from a class diagram affects only that diagram: the underlying code that defines the type and other diagrams that display the type are not affected.

To remove code and a shape from a class diagram

  1. On the class diagram, select the type shape you want to remove from the diagram.

  2. On the Edit menu, choose Remove from Diagram.

    The type shape and any lines of association or inheritance connected to the shape no longer appear on the diagram.

To delete a type shape and its underlying code

  1. Right-click the shape on the design surface.

  2. Select Delete Code from the context menu.

    The shape is removed from the diagram and its underlying code is deleted from the project.