How to: Copy class diagram elements to a Microsoft Office document
Applies to: Visual Studio Visual Studio for Mac
Note
This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
You can copy shapes from a .NET class diagram (.cd file) to other documents. You'll either get a copy of the shape or its underlying code, based on the kind of document where you paste it. To copy shapes from UML class diagrams in a modeling project, see Export diagrams as images.
Copy a single element
Right-click the shape and choose Copy Image.
Copy several elements
Select the shapes on the diagram that you want to copy.
Right-click your selection and choose Copy Image.
Copy all the elements in a class diagram
Right-click the diagram surface and choose Select All, or press Ctrl + A.
On the Edit menu, select Copy Image.
You can also choose Copy instead of Copy Image. Copy copies the image as a regular bitmap. Copy Image copies the image as a vector-based image, which is better for most Office applications.