Visual Studio Uml Design Tools
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
- Feedback
- Edit
How to: Add class diagrams to projects
- 2 minutes to read
Thank you.
To design, edit, and refactor classes and other types, add a class diagram to your C#, Visual Basic, or C++ project. To visualize different parts of the code in a project, add multiple class diagrams to the project.
You can't create class diagrams from projects that share code across multiple apps. To create UML class diagrams, see Create UML modeling projects and diagrams.
Install the Class Designer component
If you haven't installed the Class Designer component, follow these steps to install it.
-
Open Visual Studio Installer from the Windows Start menu, or by selecting Tools > Get Tools and Features from the menu bar in Visual Studio.
Visual Studio Installer opens.
-
Select the Individual components tab, and then scroll down to the Code tools category.
-
Select Class Designer and then select Modify.
The Class Designer component starts installing.
Add a blank class diagram to a project
-
In Solution Explorer, right-click the project node and then choose Add > New Item. Or, press Ctrl+Shift+A.
The Add New Item dialog opens.
-
Expand Common Items > General, and then select Class Diagram from the template list. For Visual C++ projects, look in the Utility category to find the Class Diagram template.
Note
If you don't see the Class Diagram template, follow the steps to install the Class Designer component for Visual Studio.
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.
To add multiple class diagrams, repeat the steps in this procedure.
Add a class diagram based on existing types
In Solution Explorer, open a class file's context menu (right-click) and then choose View Class Diagram.
-or-
In Class View, open the namespace or type context menu and then choose View Class Diagram.
Tip
If Class View is not open, open Class View from the View menu.
To display the contents of a complete project in a class diagram
In Solution Explorer or Class View, right-click the project and choose View, then choose View Class Diagram.
An auto-populated class diagram is created.
Important
Class Designer is not available in .NET Core projects.
See also
- How to: Create types using the Class Designer
- How to: View existing types
- Design and view classes and types
Feedback
Visual Studio Uml Design Tools
Source: https://docs.microsoft.com/en-us/visualstudio/ide/class-designer/how-to-add-class-diagrams-to-projects
Posted by: wilsonanite1993.blogspot.com
0 Response to "Visual Studio Uml Design Tools"
Post a Comment