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.
Poznámka
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.
On the class diagram, select the type shape you want to remove from the diagram.
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.
Right-click the shape on the design surface.
Select Delete Code from the context menu.
The shape is removed from the diagram and its underlying code is deleted from the project.