How to: Export class diagrams as images

Applies to: yesVisual Studio noVisual 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

To export a class diagram that you created from code in a project, save the diagram as an image. If you want to export UML class diagrams instead, see Export diagrams as images.

Export a diagram

  1. Open your class diagram (.cd) file.

  2. From the Class Diagram menu or the diagram surface shortcut menu, choose Export Diagram as Image.

  3. Select a diagram.

  4. Select the format that you want.

  5. Choose Export to finish exporting.

To automatically update exported images that are linked from other documents, export the diagram again in Visual Studio.

See also