There are a couple of ways to create a class diagram. The first is to add a class diagram to your project from the Add New Item dialog box. Here, you select a class diagram template (
.cd) and add it to the project. You can then add items to this diagram from the Toolbox or from existing classes in the Solution Explorer.
The second way to add a class diagram to a project is to choose View Class Diagram from the context menu for a given project. In this way, Visual Studio generates a class diagram from an existing project. This option is shown in Figure 6.51.
In either case, you ...