Skip to content

Commit 2965067

Browse files
Merge pull request #13348 from ghogen/add-class-diagram
Update/fix class designer instructions
2 parents eeec37a + 95b3c94 commit 2965067

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

docs/ide/class-designer/designing-and-viewing-classes-and-types.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -101,26 +101,13 @@ If you haven't installed the **Class Designer** component, follow these steps to
101101
> [!NOTE]
102102
> If you don't see the **Class Diagram** template, [follow the steps](#install-the-class-designer-component) to install the **Class Designer** component for Visual Studio. As stated earlier in this article, Class Designer is not available for .NET Core and .NET 5 and later.
103103
104-
The class diagram opens in Class Designer and appears as a file that has a *.cd* extension in **Solution Explorer**. You can drag shapes and lines to the diagram from **Toolbox**.
104+
The class diagram opens in Class Designer and appears as a file that has a *.cd* extension in **Solution Explorer**. You can drag shapes and lines to the diagram from **Toolbox**, or drag a project node from Solution Explorer to add the classes in that project.
105105

106106
To add multiple class diagrams, repeat the steps in this procedure.
107107

108-
## Add a class diagram based on existing types
109-
110-
In **Solution Explorer**, open a file's context menu (right-click) and then choose **View Class Diagram**.
111-
112-
-or-
113-
114-
In **Class View**, open the namespace or type context menu and then choose **View Class Diagram**.
115-
116-
> [!TIP]
117-
> If **Class View** is not open, open **Class View** from the **View** menu. Or, press **Ctrl**+**Shift**+**C**.
118-
119108
### To display the contents of a complete project in a class diagram
120109

121-
In **Solution Explorer** or Class View, right-click the project and choose **View**, then choose **View Class Diagram**.
122-
123-
An auto-populated class diagram is created.
110+
Open a blank class diagram, then drag the project node from Solution Explorer to the class diagram surface. An auto-populated class diagram is created.
124111

125112
> [!IMPORTANT]
126113
> Class Designer is not available in .NET Core projects.

0 commit comments

Comments
 (0)